async Task <AmazonSqsConnectException> ConvertToAmazonSqsConnectionException(Exception ex, string message) { LogContext.Error?.Log(ex, message); var exception = new AmazonSqsConnectException(message + _host.ConnectionContextSupervisor, ex); await NotifyFaulted(exception).ConfigureAwait(false); return(exception); }
async Task <AmazonSqsConnectException> ConvertToAmazonSqsConnectionException(Exception ex, string message) { if (_log.IsDebugEnabled) { _log.Debug(message, ex); } var exception = new AmazonSqsConnectException(message + _host.ConnectionContextSupervisor, ex); await NotifyFaulted(exception); return(exception); }