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)}"); } }
internal void Abort() { _amqpConnection.Abort(); }