Created
May 6, 2013 03:52
-
-
Save yesez/5523266 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void Application_Start() | |
{ | |
AreaRegistration.RegisterAllAreas(); | |
//DI | |
IKernel kernel = new StandardKernel(); | |
kernel.Bind<IPaisRepository>().To<PaisRepository>(); | |
System.Web.Http.Dependencies.IDependencyResolver resolver = new NinjectResolver(kernel); | |
GlobalConfiguration.Configuration.DependencyResolver = resolver; | |
WebApiConfig.Register(GlobalConfiguration.Configuration); | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment