public static void Start()
 {
     IContainer container = IoC.Initialize();
     StructureMapDependencyScope = new StructureMapDependencyScope(container);
     DependencyResolver.SetResolver(StructureMapDependencyScope);
     DynamicModuleUtility.RegisterModule(typeof(StructureMapScopeModule));
 }
 public static void Start()
 {
     IContainer container = IoC.Initialize();
     ParentScope = new StructureMapDependencyScope(container, new HttpContextNestedContainerScope());
     DependencyResolver.SetResolver(ParentScope);
     DynamicModuleUtility.RegisterModule(typeof(StructureMapScopeModule));
     AutoMapperBootstrapper.Initialize(ParentScope.Container);
 }