OWIN概述

关于OWIN

OWIN defines a standard interface between .NET web servers and web applications. The goal of the OWIN interface is to decouple server and application, encourage the development of simple modules for .NET web development, and, by being an open standard, stimulate the open source ecosystem of .NET web development tools.

 OWIN定义了一个标准的接口来连接.NET web 服务器(如:IIS,HttpListner等)与web应用(如:ASP.NET Web API、ASP.NET MVC等)。OWIN设计的目标是对web服务器和web应用进行解耦,鼓励针对.NET web应用进行模块化编程。OWIN正成为一个开放的标准、这将促进.NET web开发工具开源的生态系统形成。

使用OWIN,Web Framework不再依赖IIS和OS,这意味着你能使用任何你想的来替换IIS(比如:Katana或者Nowin),并且在必要时随时升级,而不是更新操作系统。当然,如果你需要的话,你可以构建自定义的宿主和Pipeline去处理HTTP请求。

 OWIN提供了明晰的规范以便我们快速灵活的去扩展Pipeline来处理HTTP请求,甚至可以不写任何一句代码来切换不同的Web Server,前提是这些Web Server遵循OWIN规范。

OWIN官网:http://owin.org/

原文地址:https://www.cnblogs.com/frankyou/p/4717010.html