public void Initialize(InitializationEngine context)
        {
            var pageUpdater = new ComposerPageUpdater();

            pageUpdater.SyncPages();

            var functionUpdater = new ComposerFunctionUpdater();

            functionUpdater.SyncFunctions();
        }
示例#2
0
        public void Initialize(InitializationEngine context)
        {
            Logger.Debug("Starting Initialize");
            var initializeTimer = Stopwatch.StartNew();

            var pageUpdater = new ComposerPageUpdater();

            pageUpdater.SyncPages();

            long timeToSyncPages = initializeTimer.ElapsedMilliseconds;

            var functionUpdater = new ComposerFunctionUpdater();

            functionUpdater.SyncFunctions();

            initializeTimer.Stop();
            Logger.DebugFormat(
                "Initialize done in {0} ms (Pages {1} ms, Rules {2} ms, Access {3} ms, ContentAreas {4} ms,)",
                initializeTimer,
                timeToSyncPages,
                functionUpdater.RulesTimer.ElapsedMilliseconds,
                functionUpdater.AccessTimer.ElapsedMilliseconds,
                functionUpdater.ContentAreasTimer.ElapsedMilliseconds);
        }