Пример #1
0
        void IManageMessageFailures.ProcessingAlwaysFailsForMessage(TransportMessage message, Exception e)
        {
            if (SanitizeProcessingExceptions)
            {
                e = ExceptionSanitizer.Sanitize(e);
            }

            Configure.Instance.Builder.Build <IBus>()
            .Send(ErrorQueue, new ProcessingFailedMessage
            {
                ExceptionInfo = e.GetInfo(),
                FailedMessage = message
            });
        }