public RebuildOnStartupHandler( ISyncBootStateAccessor syncBootStateAccessor, ExamineIndexRebuilder backgroundIndexRebuilder, IRuntimeState runtimeState) { _syncBootStateAccessor = syncBootStateAccessor; _backgroundIndexRebuilder = backgroundIndexRebuilder; _runtimeState = runtimeState; }
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); }