Asp.net 5 是开箱即用的 OWIN 还是我们需要安装它?
Does Asp.net 5 comes with OWIN out of the box or do we need install it?
- Asp.net 5 是否使用 OWIN(Katana) 软件包预构建?
- 我们不需要将 Microsoft.Owin dll 包添加到 Asp.net 5.
我说得对吗?
- 如果我们想使用 OWIN 那么 Asp.Net 5 缺少什么?
谢谢,
钱德鲁
编辑:
根据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.
- 不,如果你想使用它你需要通过
Startup.cs
将它添加到管道中
- 不,您需要添加
Microsoft.AspNet.Owin
才能使用它。
- 需要添加中间件请求管道,使用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
- Asp.net 5 是否使用 OWIN(Katana) 软件包预构建?
- 我们不需要将 Microsoft.Owin dll 包添加到 Asp.net 5. 我说得对吗?
- 如果我们想使用 OWIN 那么 Asp.Net 5 缺少什么?
谢谢, 钱德鲁
编辑: 根据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.
- 不,如果你想使用它你需要通过
Startup.cs
将它添加到管道中
- 不,您需要添加
Microsoft.AspNet.Owin
才能使用它。 - 需要添加中间件请求管道,使用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