Пример #1
0
 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.");
     }
 }
Пример #2
0
        private void Handle(SystemMessage.BecomeShutdown message)
        {
            Log.Info("[{0}] IS SHUT DOWN!!! SWEET DREAMS!!!111", _httpEndPoint);

            _state = VNodeState.Shutdown;

            _outputBus.Publish(message);
        }
Пример #3
0
 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.");
     }
 }
Пример #4
0
 public void Handle(SystemMessage.BecomeShutdown message)
 {
     _shutdownEvent.Set();
 }
Пример #5
0
 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();
 }
Пример #8
0
 public void Handle(SystemMessage.BecomeShutdown message)
 {
     _httpMessageHandler?.Dispose();
     _shutdownSource.TrySetResult(true);
 }