Per this, have something like this in Global.asax.cs:
protected void Application_Start(object sender, EventArgs e)
{
ObjectFactory.Initialize(maps => { maps.UseDefaultStructureMapConfigFile = true; });
}
This has more details on the config files. An ASP.NET application's config file will be called StructureMap.config.
No comments:
Post a Comment