简体   繁体   中英

ASP.net MVC 5 Integration with OWIN same as Web API

For Web API integration we use following thing in asp.net mvc 5 template onwards.

app.UserWebAPI(configuration);

Here we plug web api into Owin pipe line.

Is that same thing possible for MVC . Something like

app.UseMvc();

Also does Owin and Mvc use same routetable for url configuration.

Currently you cannot host mvc app with owin since mvc has dependency on system.web namespace which restrict self hosting .

But you can use FubuMVC, Nancy and Simple.Web etc

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM