OWIN – Open Web Interface for .NET, is just a specification which defines the standard interface between .NET web servers and web applications.
As said, OWIN is not a framework instead it is a specification on how web servers and web applications should be built in order to decouple one from another and allow movement of ASP.NET applications to environments where at the current state it is not possible.
There are three ways you can extend the ASP.Net pipeline processing
- Http Application or Global.asax
- Http Handler
- Http Module
It is important to understand which does what and when to use, this post is intended to give you a quick overview.
This post gives a full example of how to build your own custom retry logic for the HttpClient object in the .NET framework. The retry logic covered in this post extends on the Transient Fault Application block, which is a package provided by Microsoft, allowing code to apply retry logic when making a request to an external resource. The application block provides out of the box retry strategies to easily work with a number of Microsoft technologies, such as Microsoft Azure Table Storage, Sql Azure, Azure Service Bus and others.