tags:

views:

14

answers:

0

We are new to MVCTurbine, and are looking to convert existing StructureMap/NHibernate installations.

In particular, we have used the Application_EndRequest() method to tell StructureMap to dispose things properly, as follows:

protected void Application_EndRequest()
        {
            ObjectFactory.ReleaseAndDisposeAllHttpScopedObjects();
        }

How can we achieve the same thing now that our global.asax inherits from TurbineApplication instead?