public static void Start()
 {
     IContainer container = IoC.Initialize();
     StructureMapDependencyScope = new StructureMapDependencyScope(container);
     DependencyResolver.SetResolver(StructureMapDependencyScope);
     DynamicModuleUtility.RegisterModule(typeof(StructureMapScopeModule));
 }
Exemplo n.º 2
0
 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);
 }