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