Пример #1
0
        public void Initialize(InitializationEngine context)
        {
            var containerBuilder = new ContainerBuilder();
            var defaultBootstrapper = new DefaultBootstrapper();
            defaultBootstrapper.Configure(containerBuilder);
            var container = containerBuilder.Build();
            
            PageTypeSynchronizer synchronizer = container.Resolve<PageTypeSynchronizer>();
            synchronizer.SynchronizePageTypes();

            DataFactory.Instance.LoadedPage += DataFactory_LoadedPage;
            DataFactory.Instance.LoadedChildren += DataFactory_LoadedChildren;
            DataFactory.Instance.LoadedDefaultPageData += DataFactory_LoadedPage;
        }
Пример #2
0
        public void Initialize(InitializationEngine context)
        {
            var containerBuilder    = new ContainerBuilder();
            var defaultBootstrapper = new DefaultBootstrapper();

            defaultBootstrapper.Configure(containerBuilder);
            var container = containerBuilder.Build();

            PageTypeSynchronizer synchronizer = container.Resolve <PageTypeSynchronizer>();

            synchronizer.SynchronizePageTypes();

            DataFactory.Instance.LoadedPage            += DataFactory_LoadedPage;
            DataFactory.Instance.LoadedChildren        += DataFactory_LoadedChildren;
            DataFactory.Instance.LoadedDefaultPageData += DataFactory_LoadedPage;
        }
Пример #3
0
		public void Initialize(InitializationEngine context)
		{
			var stopWatch = System.Diagnostics.Stopwatch.StartNew();
			log.Debug("Starting Initialize");

			var containerBuilder = new ContainerBuilder();
			var defaultBootstrapper = new DefaultBootstrapper();
			defaultBootstrapper.Configure(containerBuilder);
			var container = containerBuilder.Build();

			PageTypeSynchronizer synchronizer = container.Resolve<PageTypeSynchronizer>();
			synchronizer.SynchronizePageTypes();

			DataFactory.Instance.LoadedPage += DataFactory_LoadedPage;
			DataFactory.Instance.LoadedChildren += DataFactory_LoadedChildren;
			DataFactory.Instance.LoadedDefaultPageData += DataFactory_LoadedPage;

			stopWatch.Stop();
			log.DebugFormat("Initialize done in {0} ms", stopWatch.ElapsedMilliseconds);
		}