Reusing Polly Policies with Dependency Injection

Download full source code. Want to learn more about Polly? Check out my Pluralsight course on it. In my previous post “A simple Polly example with WebApi 2” I showed how to make a request to an unreliable endpoint protected by a Polly retry policy.

Web API 2 and ninject, how to make them work together

Full source code to download. I’ve been using ninject for a few years, but every time I use it with Web Api I hit some problem and they usually stem from not including the right nuget packages, not changing the DependencyResolver or (once) forgetting how to make a binding!