private void Handle(SystemMessage.BecomeShutdown message) { Log.Info("========== [{0}] IS SHUT DOWN.", _nodeInfo.InternalHttp); _state = VNodeState.Shutdown; try { _outputBus.Publish(message); } catch (Exception exc) { Log.ErrorException(exc, "Error when publishing {0}.", message); } if (_exitProcessOnShutdown) { try { _node.WorkersHandler.Stop(); _mainQueue.RequestStop(); } catch (Exception exc) { Log.ErrorException(exc, "Error when stopping workers/main queue."); } Application.Exit(ExitCode.Success, "Shutdown and exit from process was requested."); } }
private void Handle(SystemMessage.BecomeShutdown message) { Log.Info("[{0}] IS SHUT DOWN!!! SWEET DREAMS!!!111", _httpEndPoint); _state = VNodeState.Shutdown; _outputBus.Publish(message); }
private void Handle(SystemMessage.BecomeShutdown message) { Log.Info("========== [{0}] IS SHUT DOWN!!! SWEET DREAMS!!!", _httpEndPoint); _state = VNodeState.Shutdown; _outputBus.Publish(message); if (_exitProcessOnShutdown) { Application.Exit(ExitCode.Success, "Shutdown with exiting from process was requested."); } }
public void Handle(SystemMessage.BecomeShutdown message) { _shutdownEvent.Set(); }
void IHandle <SystemMessage.BecomeShutdown> .Handle(SystemMessage.BecomeShutdown message) { // by now (in case of successful shutdown process), all readers and writers should not be using ReadIndex _readIndex.Close(); }
public void Handle(SystemMessage.BecomeShutdown message) { _stopped = true; }
public void Handle(SystemMessage.BecomeShutdown message) { _monitoringQueue.RequestStop(); }
public void Handle(SystemMessage.BecomeShutdown message) { _httpMessageHandler?.Dispose(); _shutdownSource.TrySetResult(true); }