Example #1
0
 public static ENodeConfiguration ShutdownEQueue(this ENodeConfiguration enodeConfiguration)
 {
     _commandService.Shutdown();
     _broker.Shutdown();
     _nameServerController.Shutdown();
     return(enodeConfiguration);
 }
Example #2
0
 public static void Stop()
 {
     if (_broker != null)
     {
         _broker.Shutdown();
     }
 }
Example #3
0
 public static ENodeConfiguration ShutdownEQueue(this ENodeConfiguration enodeConfiguration)
 {
     _eventPublisher.Shutdown();
     _broker.Shutdown();
     _nameServerController.Shutdown();
     return enodeConfiguration;
 }
Example #4
0
 public static ENodeConfiguration ShutdownEQueue(this ENodeConfiguration enodeConfiguration)
 {
     _commandService.Shutdown();
     _commandConsumer.Shutdown();
     _broker.Shutdown();
     return(enodeConfiguration);
 }
Example #5
0
 public static ENodeConfiguration ShutdownEQueue(this ENodeConfiguration enodeConfiguration)
 {
     _commandResultProcessor.Shutdown();
     _commandService.Shutdown();
     _eventPublisher.Shutdown();
     _commandConsumer.Shutdown();
     _eventConsumer.Shutdown();
     _broker.Shutdown();
     return(enodeConfiguration);
 }
Example #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);
 }
Example #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);
 }
Example #8
0
 public static void Stop()
 {
     try
     {
         if (_broker != null)
         {
             _broker.Shutdown();
         }
     }
     catch (Exception ex)
     {
         _logger.Error("Broker 停止失败.", ex);
         throw;
     }
 }
Example #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);
            }
        }
Example #10
0
 public static ENodeConfiguration ShutdownEQueue(this ENodeConfiguration enodeConfiguration)
 {
     _eventPublisher.Shutdown();
     _broker.Shutdown();
     return(enodeConfiguration);
 }