Created
January 23, 2012 05:58
-
-
Save jmarnold/1661028 to your computer and use it in GitHub Desktop.
Fubu Bootstrapping
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 static class AppStartFubuMVC | |
{ | |
public static void Start() | |
{ | |
ObjectFactory.Initialize(x => | |
{ | |
// Custom container configuration | |
}); | |
FubuApplication | |
.For<ConfigureFubuMVC>() | |
.StructureMapObjectFactory() // Same as: StructureMap(() => ObjectFactory.Container) | |
.Bootstrap(); | |
// Ensure that no errors occurred during bootstrapping | |
PackageRegistry.AssertNoFailures(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment