public static void SetSourcePersistenceId(this MessagePayload payload, MessagePersistenceId id)
        {
            Contract.Requires(id != null);

            payload.RemoveHeader(typeof(SourcePersistenceHeader));
            payload.AddHeader(new SourcePersistenceHeader(id));
        }
 public PersistenceHeader(MessagePersistenceId messagePersistenceId)
 {
     PersistenceId = messagePersistenceId;
 }
 public static void SetAcknowledgementId(this MessagePayload payload, MessagePersistenceId toSet)
 {
     Contract.Requires(toSet != null);
     payload.AddHeader(new AcknowledgementHeader(toSet));
 }
 public SourcePersistenceHeader(MessagePersistenceId id) : base(id)
 {
 }
 public AcknowledgementHeader(MessagePersistenceId toSet)
 {
     Contract.Requires(toSet != null);
     this.MessageId = toSet;
 }