/// <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(); }
/// <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); }
public static MessageIntentEnum GetMesssageIntent(this IncomingMessage message) { throw new NotImplementedException(); }