void IManageMessageFailures.ProcessingAlwaysFailsForMessage(TransportMessage message, Exception e) { if (SanitizeProcessingExceptions) { e = ExceptionSanitizer.Sanitize(e); } this.SendFailureMessage(message, e, "ProcessingFailed"); }
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; }
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 }); }