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?
process the request and generate the response: mvc itself is a middleware that typically gets configured in the very end of the middleware pipeline. monitor the request and let it pass through to next middleware in line: logging middleware which simply logs the request and response details.
OWIN allows web apps to be decoupled from web servers. It defines a standard way for middleware to be used in a pipeline to handle requests and associated responses. ASP.NET Core applications and middleware can interoperate with OWIN-based applications, servers, and middleware.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With