protected override void OnStartInitialization() { _sagaServices.TryCompleteInprogressSaga <SearcherPluginProfileInitializationSagaData>(Data.Id); _sagaServices.TryCompleteInprogressSaga <SearcherPluginProfileUpdatedInitializationData>(Data.Id); _log.Info("Started rebuilding indexes"); var storage = _profile.Get <IndexProgress>(); storage.Clear(); storage.Add(new IndexProgress()); SendLocal(new IndexExistingEntitiesLocalMessage { OuterSagaId = Data.Id }); }
public void Handle(IndexExistingEntitiesLocalMessage message) { _sagaServices.TryCompleteInprogressSaga <IndexExistingEntitiesSagaData>(Data.Id); _documentIndexProvider.ShutdownDocumentIndexes(_pluginContext, new DocumentIndexShutdownSetup(forceShutdown: true, cleanStorage: true), _logger); Data.OuterSagaId = message.OuterSagaId; _generalsIndexing.Start(); }