protected static void LogMessage(MessagePayload toInput)
 {
     Logger.Debug(
         "Repeating message: {0} on {1} with sequence {2}",
         toInput.Id,
         toInput.HasHeader<FromAddressHeader>() ? toInput.GetFromAddress().Channel : "n/a",
         toInput.HasSequence() ? toInput.GetSequence().ToString() : "n/a");
 }
 static int GetMessageSequence(MessagePayload message)
 {
     return message.HasSequence() ? message.GetSequence() : 0;
 }