运行Asp.Net MVC归OWIN中间件? [英] Run Asp.Net Mvc as OWIN middleware?

查看:176
本文介绍了运行Asp.Net MVC归OWIN中间件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能运行Asp.Net MVC归OWIN中间件?这有什么必要?我似乎无法找到这事,但我不知道为什么它是不可能的。

Is it possible to run Asp.Net Mvc as OWIN middleware? What is necessary for this? I can't seem to find anything about this but I have no idea why it wouldn't be possible.

这可能吗?它是容易吗?请问这个问题有意义吗?

Is it possible? Is it easy? Does the question make sense?

推荐答案

目前ASP.NET MVC不会对OWIN运行。网页API会因为它已经从的System.Web 脱钩,特别是的HttpContext 。这是从OWIN运行以及prevents MVC的主要依赖。

Currently ASP.NET MVC doesn't run on OWIN. Web API will because it's been decoupled from System.Web, specifically HttpContext. This is the main dependency that prevents MVC from running on OWIN as well.

这是做OWIN运行一些替代品 FubuMVC ,的南希 Simple.Web

Some alternatives that do run on OWIN are FubuMVC, Nancy and Simple.Web

这篇关于运行Asp.Net MVC归OWIN中间件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆