public RebuildOnStartupHandler(
     ISyncBootStateAccessor syncBootStateAccessor,
     ExamineIndexRebuilder backgroundIndexRebuilder,
     IRuntimeState runtimeState)
 {
     _syncBootStateAccessor    = syncBootStateAccessor;
     _backgroundIndexRebuilder = backgroundIndexRebuilder;
     _runtimeState             = runtimeState;
 }
Пример #2
0
            public static void ResumeIndexers(ExamineIndexRebuilder backgroundIndexRebuilder)
            {
                s_suspended = false;

                StaticApplicationLogging.Logger.LogInformation("Resume indexers (rebuild:{Tried}).", s_tried);

                if (s_tried == false)
                {
                    return;
                }

                s_tried = false;

                backgroundIndexRebuilder.RebuildIndexes(false);
            }