Skip to content

Instantly share code, notes, and snippets.

@jmarnold
Created January 23, 2012 05:58
Show Gist options
  • Save jmarnold/1661028 to your computer and use it in GitHub Desktop.
Save jmarnold/1661028 to your computer and use it in GitHub Desktop.
Fubu Bootstrapping
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