Beispiel #1
0
 public static ENodeConfiguration ShutdownEQueue(this ENodeConfiguration enodeConfiguration)
 {
     _commandService.Shutdown();
     _broker.Shutdown();
     _nameServerController.Shutdown();
     return(enodeConfiguration);
 }
Beispiel #2
0
 public static void Stop()
 {
     if (_broker != null)
     {
         _broker.Shutdown();
     }
 }
Beispiel #3
0
 public static ENodeConfiguration ShutdownEQueue(this ENodeConfiguration enodeConfiguration)
 {
     _eventPublisher.Shutdown();
     _broker.Shutdown();
     _nameServerController.Shutdown();
     return enodeConfiguration;
 }
Beispiel #4
0
 public static ENodeConfiguration ShutdownEQueue(this ENodeConfiguration enodeConfiguration)
 {
     _commandService.Shutdown();
     _commandConsumer.Shutdown();
     _broker.Shutdown();
     return(enodeConfiguration);
 }
Beispiel #5
0
 public static ENodeConfiguration ShutdownEQueue(this ENodeConfiguration enodeConfiguration)
 {
     _commandResultProcessor.Shutdown();
     _commandService.Shutdown();
     _eventPublisher.Shutdown();
     _commandConsumer.Shutdown();
     _eventConsumer.Shutdown();
     _broker.Shutdown();
     return(enodeConfiguration);
 }
Beispiel #6
0
 public static ENodeConfiguration ShutdownEQueue(this ENodeConfiguration enodeConfiguration)
 {
     _commandService.Shutdown();
     _applicationMessagePublisher.Shutdown();
     _domainEventPublisher.Shutdown();
     _exceptionPublisher.Shutdown();
     _commandConsumer.Shutdown();
     _applicationMessageConsumer.Shutdown();
     _eventConsumer.Shutdown();
     _exceptionConsumer.Shutdown();
     _broker.Shutdown();
     return(enodeConfiguration);
 }
Beispiel #7
0
 public static ENodeConfiguration ShutdownEQueue(this ENodeConfiguration enodeConfiguration)
 {
     _commandService.Shutdown();
     _eventPublisher.Shutdown();
     _applicationMessagePublisher.Shutdown();
     _publishableExceptionPublisher.Shutdown();
     _commandConsumer.Shutdown();
     _eventConsumer.Shutdown();
     _applicationMessageConsumer.Shutdown();
     _publishableExceptionConsumer.Shutdown();
     _broker.Shutdown();
     _nameServerController.Shutdown();
     return(enodeConfiguration);
 }
Beispiel #8
0
 public static void Stop()
 {
     try
     {
         if (_broker != null)
         {
             _broker.Shutdown();
         }
     }
     catch (Exception ex)
     {
         _logger.Error("Broker 停止失败.", ex);
         throw;
     }
 }
Beispiel #9
0
        public bool Stop(HostControl hostControl)
        {
            try
            {
                if (_broker != null)
                {
                    _broker.Shutdown();
                }
                return(true);
            }
            catch (Exception ex)
            {
                _logger.Error("Broker stop failed.", ex);

                return(false);
            }
        }
Beispiel #10
0
 public static ENodeConfiguration ShutdownEQueue(this ENodeConfiguration enodeConfiguration)
 {
     _eventPublisher.Shutdown();
     _broker.Shutdown();
     return(enodeConfiguration);
 }