예제 #1
0
        void IManageMessageFailures.ProcessingAlwaysFailsForMessage(TransportMessage message, Exception e)
        {
            if (SanitizeProcessingExceptions)
            {
                e = ExceptionSanitizer.Sanitize(e);
            }

            this.SendFailureMessage(message, e, "ProcessingFailed");
        }
예제 #2
0
        void IManageMessageFailures.ProcessingAlwaysFailsForMessage(TransportMessage message, Exception e)
        {
            if (SanitizeProcessingExceptions)
            {
                e = ExceptionSanitizer.Sanitize(e);
            }

            var id = message.Id;

            SendFailureMessage(message, e, "ProcessingFailed"); //overwrites message.Id
            message.Id = id;
        }
예제 #3
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
            });
        }