Friday, 17 June 2016

Understanding Basic of Owin and Katana

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 specification
For 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

  1. Install-Package Microsoft.Owin.Hosting via Nuget Package Manager Console
  2. Install-Package Microsoft.Owin.Host.HttpListener via Nuget Package Manager Console
In the Katana implementation of the OWIN specification, the host will use reflection and scan the loaded assemblies for a type named 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