I'm using Ninject for DI and the Ninject.MVC3 extension within an MVC4 app, specifically version 3.0.0.6.
Reading the documentation on Ninject's wiki, it appears that the lifetime of objects created with InRequestScope are actually controlled by ASP.NET and to properly clean up one should register the OnePerRequest HttpModule.
However it looks like this doco is out of date as type="Ninject.OnePerRequestModule"/> cannot be found.
On the other hand I read some bits recently that seemed to suggest that NinjectHttpApplication already deals with OnePerRequest.
My question is whether Ninject.Web.MVC 3.0 already deals with this issue or if I still have to manually add the HttpModule to my 'web.config'.
I have added the below to my config and everything appears to be working, though I have no idea at all how to test for when objects are destroyed:
<system.web>
<httpModules>
<add name="OnePerRequestModule" type="Ninject.Web.Common.OnePerRequestHttpModule"/>
</httpModules>
...
Do I need to manually add the OnePerRequest HttpModule or does Ninject.Web.MVC handle this for me?