internal static Message CreateAcknowledgmentMessage(MessageVersion version, ReliableMessagingVersion reliableMessagingVersion, UniqueId id, SequenceRangeCollection ranges, bool final, int bufferRemaining)
        {
            Message message = Message.CreateMessage(version, WsrmIndex.GetSequenceAcknowledgementActionHeader(version.Addressing, reliableMessagingVersion));

            AddAcknowledgementHeader(reliableMessagingVersion, message, id, ranges, final, bufferRemaining);
            message.Properties.AllowOutputBatching = false;
            return(message);
        }