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?
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?
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.
Some alternatives that do run on OWIN are FubuMVC, Nancy and Simple.Web
owin.host.systemweb
package is all about. There are articles but the idea is this - it's supposed to be that mvc, web api, etc are all implemented as OWIN middleware. That's not quite possible at the moment (soon). So instead this package implements OWIN in the same way as Mvc - as an HttpModule (a crappier IIS version of the same concept). This ends up giving most of, but not all of the benefits of standard OWIN. –
Tattan No, MVC depends on System.Web.dll (and thus IIS).
You may look at Katana.Boot.AspNet but as Chris Ross said it's just a "hello world" prototype without any futher development. Also you may look at OWIN Gate's era ASP.NET pipeline adapter.
© 2022 - 2024 — McMap. All rights reserved.