コード例 #1
0
 public static void Start()
 {
     IContainer container = IoC.Initialize();
     StructureMapDependencyScope = new StructureMapDependencyScope(container);
     DependencyResolver.SetResolver(StructureMapDependencyScope);
     DynamicModuleUtility.RegisterModule(typeof(StructureMapScopeModule));
 }
コード例 #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);
 }