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(); }
private void Connection_ConnectionBlocked(object sender, global::RabbitMQ.Client.Events.ConnectionBlockedEventArgs e) { OnConnectionBlocked(e); }
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(); }