Task NotifyFaulted(RabbitMqConnectionException exception) { if (_log.IsErrorEnabled) { _log.ErrorFormat("RabbitMQ Connect Failed: {0}", exception.Message); } return(_receiveTransportObservable.Faulted(new ReceiveTransportFaultedEvent(_inputAddress, exception))); }
async Task <RabbitMqConnectionException> ConvertToRabbitMqConnectionException(Exception ex, string message) { LogContext.Error?.Log(ex, message); var exception = new RabbitMqConnectionException(message + _hostConfiguration.Settings.ToDescription(), ex); await NotifyFaulted(exception).ConfigureAwait(false); return(exception); }
async Task <RabbitMqConnectionException> ConvertToRabbitMqConnectionException(Exception ex, string message) { LogContext.Error?.Log(ex, message); var exception = new RabbitMqConnectionException(message + _host.ConnectionContextSupervisor, ex); await NotifyFaulted(exception).ConfigureAwait(false); return(exception); }
async Task <RabbitMqConnectionException> ConvertToRabbitMqConnectionException(Exception ex, string message) { if (_log.IsDebugEnabled) { _log.Debug(message, ex); } var exception = new RabbitMqConnectionException(message + _host.ConnectionCache, ex); await NotifyFaulted(exception); return(exception); }
async Task <RabbitMqConnectionException> ConvertToRabbitMqConnectionException(Exception ex, string message) { if (_log.IsDebugEnabled) { _log.Debug(message, ex); } var exception = new RabbitMqConnectionException(message + _host.ConnectionContextSupervisor, ex); await NotifyFaulted(exception).ConfigureAwait(false); return(exception); }
Task NotifyFaulted(RabbitMqConnectionException exception) { LogContext.Error?.Log(exception, "RabbitMQ Connect Failed: {Host}", _hostConfiguration.Settings.ToDescription()); return(_context.TransportObservers.Faulted(new ReceiveTransportFaultedEvent(_inputAddress, exception))); }