public static void Initialize()
		{
			lock (_syncRoot)
			{
				if (!_isInitialized)
				{
					Container = ContainerFactory.Initialize();
					ServiceLocator = new StructureMapDependencyScope(Container);
					DependencyResolver = new StructureMapDependencyResolver(Container);
					StructuremapMvc.StructureMapDependencyScope = new StructureMapDependencyScope(Container);
					DynamicModuleUtility.RegisterModule(typeof(StructureMapScopeModule));
					DynamicModuleUtility.RegisterModule(typeof(PopForumsLoggingModule));
					_isInitialized = true;
				}
			}
		}
		public static void Start()
		{
			var container = new Container(x => x.AddRegistry<PopForumsRegistry>());
			StructureMapDependencyScope = new StructureMapDependencyScope(container);
		}
Beispiel #3
0
        public static void Start()
        {
            var container = new Container(x => x.AddRegistry <PopForumsRegistry>());

            StructureMapDependencyScope = new StructureMapDependencyScope(container);
        }