The raw message coming from the transport.
Пример #1
0
        /// <summary>
        /// Initializes the error context.
        /// </summary>
        public ErrorContext(Exception exception, Dictionary<string, string> headers, string transportMessageId, byte[] body, TransportTransaction transportTransaction, int immediateProcessingFailures)
        {
            Exception = exception;
            TransportTransaction = transportTransaction;
            ImmediateProcessingFailures = immediateProcessingFailures;

            Message = new IncomingMessage(transportMessageId, headers, body);

            DelayedDeliveriesPerformed = Message.GetDelayedDeliveriesPerformed();
        }
Пример #2
0
        /// <summary>
        /// Gets the reply to address.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <returns>The reply to address.</returns>
        public static string GetReplyToAddress(this IncomingMessage message)
        {
            string replyToAddress;

            return(message.Headers.TryGetValue(Headers.ReplyToAddress, out replyToAddress) ? replyToAddress : null);
        }
Пример #3
0
 public static MessageIntentEnum GetMesssageIntent(this IncomingMessage message)
 {
     throw new NotImplementedException();
 }