public void Handle(SystemMessage.Init message) { Log.Info("Storage starting"); try { _store = _func(); _publisher.Publish(new SystemMessage.StorageWriterInitializationDone()); } catch (Exception ex) { Application.Exit(ExitCode.Error, "Failed to initialize store: " + ex.Message); } }
public void Handle(SystemMessage.Init message) { Log.Info("Storage starting"); try { _manager = new AzureEventStoreManager(_config); _publisher.Publish(new SystemMessage.StorageWriterInitializationDone()); } catch (Exception ex) { Log.FatalException(ex, "Failed to initialize store: " + ex.Message); Application.Exit(ExitCode.Error, "Failed to initialize store: " + ex.Message); } }
void Handle(SystemMessage.Init e) { Log.Info("Initializing"); _outputBus.Publish(e); }