Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Asp.Net Mvc as OWIN middleware?

Tags:

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?

like image 663
George Mauer Avatar asked Mar 06 '14 23:03

George Mauer


People also ask

Is MVC a middleware?

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.

What is OWIN middleware?

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.


1 Answers

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

like image 73
Brian Surowiec Avatar answered Oct 03 '22 15:10

Brian Surowiec