AspNetWebApi.DependencyResolution.NInject.Global.Application_Start C# (CSharp) Метод

Application_Start() защищенный Метод

protected Application_Start ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        protected void Application_Start(object sender, EventArgs e)
        {
            GlobalConfiguration.Configuration.Routes.MapHttpRoute(
              name: "DefaultApi",
              routeTemplate: "api/{controller}/{id}",
              defaults: new { id = RouteParameter.Optional }
              );


            var kernel = new StandardKernel();
            kernel.Bind<ITaxCalculator>().To<TaxCalculator>();
            kernel.Bind<ValuesController>().To<ValuesController>();

            GlobalConfiguration.Configuration.DependencyResolver = 
                new NInjectDependencyResolver(kernel);
        }