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;
				}
			}
		}
Example #2
0
		public static void Start()
		{
			var container = new Container(x => x.AddRegistry<PopForumsRegistry>());
			StructureMapDependencyScope = new StructureMapDependencyScope(container);
		}
Example #3
0
        public static void Start()
        {
            var container = new Container(x => x.AddRegistry <PopForumsRegistry>());

            StructureMapDependencyScope = new StructureMapDependencyScope(container);
        }