示例#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
                });
        }