protected override void OnStartInitialization() { _log.Info("Started building indexes"); var storage = _profileReadonly.Get <IndexProgress>(); storage.Clear(); storage.Add(new IndexProgress()); SendLocal(new IndexExistingEntitiesLocalMessage { OuterSagaId = Data.Id }); }
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 ProfileGateway(IProfileReadonly profile, AccountName accountName, ITpBus bus) { _profile = profile; _accountName = accountName; _bus = bus; _storage = _profile.Get <ITargetProcessMessage>(); }
public ProfileGateway(IProfileReadonly profile, AccountName accountName, ITpBus bus) { _profile = profile; _accountName = accountName; _bus = bus; _storage = _profile.Get<ITargetProcessMessage>(); }
public void Handle(IndexExistingEntitiesDoneLocalMessage message) { _log.Info("Finished rebuilding indexes"); _profileReadonly.Get <IndexProgress>(typeof(IndexProgress).Name).Clear(); MarkAsComplete(); }