Created
May 11, 2011 03:39
-
-
Save jglozano/965878 to your computer and use it in GitHub Desktop.
IHttpModule auto-registration disabling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
} |
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
I like.