async Task <ActiveMqConnectException> ConvertToActiveMqConnectionException(Exception ex, string message)
        {
            LogContext.Error?.Log(ex, message);

            var exception = new ActiveMqConnectException(message + _hostConfiguration.ConnectionContextSupervisor, ex);

            await NotifyFaulted(exception).ConfigureAwait(false);

            return(exception);
        }
Example #2
0
        async Task <ActiveMqConnectException> ConvertToActiveMqConnectionException(Exception ex, string message)
        {
            if (_log.IsDebugEnabled)
            {
                _log.Debug(message, ex);
            }

            var exception = new ActiveMqConnectException(message + _host.ConnectionCache, ex);

            await NotifyFaulted(exception);

            return(exception);
        }
        async Task <ActiveMqConnectException> ConvertToActiveMqConnectionException(Exception ex, string message)
        {
            if (_log.IsDebugEnabled)
            {
                _log.Debug(message, ex);
            }

            var exception = new ActiveMqConnectException(message + _host.ConnectionContextSupervisor, ex);

            await NotifyFaulted(exception).ConfigureAwait(false);

            return(exception);
        }