forked from remogloor/Ninject.Web.WebApi
-
Couldn't load subscription status.
- Fork 36
Setting up an mvc webapi application
Remo Gloor edited this page Apr 7, 2014
·
13 revisions
This extension is based on Ninject.Web.Common. The documentation of this package contains two chapters about how to setup a web application. Please choose the appropriate link for your project type:
-
Setting up an IIS hosted web application
If you are using Nuget install Ninject.Web.WebApi.WebHost instead of the package mentioned in that documentation. -
Setting up a self hosted web application
If you are Nuget install Ninject.Web.WebApi.SelfHost instead of the package mentioned in that documentation.
To configure the NinjectSelfHostBootstrapper for WebApi self hosting you have to initialize it with a HttpSelfHostConfiguration which is configured for your needs.