public ExceptionInfo(Exception ex) { this.Message = ex.Message; this.StackTrace = ex.StackTrace; this.FullInfo = ex.GetInfo(); this.EntryTime = DateTime.Now; this.UploadMediaFiles = new List <string>(); }
//Intentionally service-locate the bus to avoid circular //resolution problem in the container void IManageMessageFailures.SerializationFailedForMessage(TransportMessage message, Exception e) { Configure.Instance.Builder.Build<IBus>() .Send(ErrorQueue, new SerializationFailedMessage { ExceptionInfo = e.GetInfo(), FailedMessage = message }); }
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 }); }