Asp.net 5 是开箱即用的 OWIN 还是我们需要安装它?

Does Asp.net 5 comes with OWIN out of the box or do we need install it?

谢谢, 钱德鲁

编辑: 根据this The new asp.net pipeline supports OWIN through OWIN adapter, here is an example of that, more info on how OWIN fit in with asp.net 5 here.

  1. 不,如果你想使用它你需要通过Startup.cs
  2. 将它添加到管道中
  3. 不,您需要添加 Microsoft.AspNet.Owin 才能使用它。
  4. 需要添加中间件请求管道,使用Microsoft.AspNet.Owin

不,Asp.Net 5 不是基于 OWIN 构建的(没有 IDictionary<string, object> 环境),但它确实使用了类似的概念并且有一个可用的互操作包。参见 https://github.com/aspnet/HttpAbstractions/tree/dev/src/Microsoft.AspNet.Owin, https://github.com/aspnet/Entropy/tree/dev/samples/Owin.IAppBuilderBridge, http://blogs.msdn.com/b/webdev/archive/2014/11/14/katana-asp-net-5-and-bridging-the-gap.aspx