Skip to content

Instantly share code, notes, and snippets.

@mgroves
Created January 15, 2014 20:10
Show Gist options
  • Select an option

  • Save mgroves/8443588 to your computer and use it in GitHub Desktop.

Select an option

Save mgroves/8443588 to your computer and use it in GitHub Desktop.
public class Global : HttpApplication
{
void Application_Start(object sender, EventArgs e)
{
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
IocBootstrap.Configure();
}
}
public static class IocBootstrap
{
public static void Configure()
{
ObjectFactory.Initialize(x =>
{
x.Scan(scan =>
{
scan.TheCallingAssembly();
scan.WithDefaultConventions();
});
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment