Skip to content

Instantly share code, notes, and snippets.

@jglozano
Created May 11, 2011 03:39
Show Gist options
  • Save jglozano/965878 to your computer and use it in GitHub Desktop.
Save jglozano/965878 to your computer and use it in GitHub Desktop.
IHttpModule auto-registration disabling
public class MvcApplication : TurbineApplication {
static MvcApplication() {
// Now tell the engine to use the Windsor locator
ServiceLocatorManager.SetLocatorProvider(() => new MvcTurbine.Windsor.WindsorServiceLocator());
// Disable the auto-registration of IHttpModule across the board
Engine.Initialize
.DisableHttpModuleRegistration();
}
}
@darrencauthon
Copy link

I like.

@jglozano
Copy link
Author

best part? You can now do do Engine.Initialize.WithCoreBlade() as well ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment