You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: