dotnetstep
dotnetstep

Reputation: 17485

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.

Upvotes: 1

Views: 409

Answers (1)

Hamid Narikkoden
Hamid Narikkoden

Reputation: 861

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

Upvotes: 2

Related Questions