Пример #1
0
 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>();
 }
Пример #2
0
 //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
         });
 }
Пример #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
                });
        }