Exemplo n.º 1
0
 private void Shutdown()
 {
     if (Logging.IsEnabled)
     {
         Logging.Enter(this, AmqpConnection, $"{nameof(Shutdown)}");
     }
     AmqpAuthenticationRefresher?.StopLoop();
     AmqpConnection?.Abort();
     OnConnectionDisconnected?.Invoke(this, EventArgs.Empty);
     if (Logging.IsEnabled)
     {
         Logging.Exit(this, AmqpConnection, $"{nameof(Shutdown)}");
     }
 }
Exemplo n.º 2
0
 internal void Abort()
 {
     _amqpConnection.Abort();
 }