OWIN
OWIN (the Open Web Interface for .NET) is an open-source specification describing an abstraction layer between web servers and application components.OWIN is a specification, not an implementation.
Katana
Katana provides an implementation of the OWIN specificationFor our purposes, we will use very basic components from Katana to demonstrate and understand: Now let's get our hand dirty
Creating a Barebones Katana Application
Install-Package Microsoft.Owin.Hosting
via Nuget Package Manager ConsoleInstall-Package Microsoft.Owin.Host.HttpListener
via Nuget Package Manager Console-
Startup
with a method with the name and signature void Configuration(IAppBuilder)
.
The
IAppBuilder
interface is NOT a part of the OWIN specification. It is, however, a required component for a Katana host. The IAppBuilder
interface provides a core set of methods required to implement the OWIN standard, and serves as a base for additional extension methods for implementing middleware.
Running the Application
Running the Application with Multiple Middlewares in the Pipeline
Comment Out Call to Invoke