I'm throwing some load tests at my WebAPI Self Hosted application and have found that Ninject's Cache Pruning stalls the application for a few seconds (profiling under load in the screenshot).
How can I avoid having the Cache Pruning stall requests??
All I have done is set the HttpSelfHostConfiguration.DependencyResolver = new NinjectDependencyResolver(new StandardKernel()) (configuration omitted)
Is there a way to Remove the Object at the end of the request?
UPDATE:
From here, https://github.com/ninject/ninject/issues/37, it seems that expecting the object to be removed at the end of the request can only be expected for Ninject.Web and Ninject.Web.MVC
UPDATE/NOTE:
I've been using the nuget package Ninject.Web.WebApi-RC, along with AttributeRouting.WebApi.Hosted.
UPDATE
I updated the scope and resolver definitions, now I find I have a hang... I'm now simply testing against an action which returns a string constant.