var kernel = new StandardKernel();
try
{
kernel.Bind<Func<IKernel>>().ToMethod(ctx => () => new Bootstrapper().Kernel);
kernel.Bind<IHttpModule>().To<HttpApplicationInitializationHttpModule>();
RegisterServices(kernel);
System.Web.Http.GlobalConfiguration.Configuration.DependencyResolver = new NinjectDependencyResolver(kernel);
return kernel;
}
catch
{
kernel.Dispose();
throw;
}
ninject creates binding for IFilterProvider which makes Authorize attribute two call two times per web api request
are there any options in StandardKernel to avoid this binding
I'm using ninject version 3.3.4
ninject creates binding for IFilterProvider which makes Authorize attribute two call two times per web api request are there any options in StandardKernel to avoid this binding