예제 #1
0
        private void _connection_ConnectionBlocked(object sender, global::RabbitMQ.Client.Events.ConnectionBlockedEventArgs e)
        {
            if (_disposed)
            {
                return;
            }

            //_logger.LogWarning("A RabbitMQ connection throw exception. Trying to  re connect...");

            TryConnect();
        }
예제 #2
0
 private void Connection_ConnectionBlocked(object sender, global::RabbitMQ.Client.Events.ConnectionBlockedEventArgs e)
 {
     OnConnectionBlocked(e);
 }
예제 #3
0
        protected internal void OnConnectionBlocked(object sender, global::RabbitMQ.Client.Events.ConnectionBlockedEventArgs e)
        {
            _logger.LogError($"The connection was blocked for the following reason: {e.Reason}. Trying to reconnect");

            TryConnect();
        }