internal static Message CreateTerminateMessage(MessageVersion version, ReliableMessagingVersion reliableMessagingVersion, UniqueId id, long last)
        {
            Message message = Message.CreateMessage(version, WsrmIndex.GetTerminateSequenceActionHeader(version.Addressing, reliableMessagingVersion), new TerminateSequence(reliableMessagingVersion, id, last));

            message.Properties.AllowOutputBatching = false;
            return(message);
        }
        private void CreateTerminateRequestor()
        {
            RequestReliableRequestor requestor = new RequestReliableRequestor();

            this.ConfigureRequestor(requestor);
            requestor.MessageAction = WsrmIndex.GetTerminateSequenceActionHeader(this.settings.MessageVersion.Addressing, this.settings.ReliableMessagingVersion);
            requestor.MessageBody   = new System.ServiceModel.Channels.TerminateSequence(this.settings.ReliableMessagingVersion, this.session.OutputID, this.connection.Last);
            lock (base.ThisLock)
            {
                base.ThrowIfClosed();
                this.terminateRequestor = requestor;
                this.session.CloseSession();
            }
        }
        void CreateTerminateRequestor()
        {
            RequestReliableRequestor temp = new RequestReliableRequestor();

            this.ConfigureRequestor(temp);
            temp.MessageAction = WsrmIndex.GetTerminateSequenceActionHeader(
                this.settings.MessageVersion.Addressing, this.settings.ReliableMessagingVersion);
            temp.MessageBody = new TerminateSequence(this.settings.ReliableMessagingVersion,
                                                     this.session.OutputID, this.connection.Last);

            lock (this.ThisLock)
            {
                this.ThrowIfClosed();
                this.terminateRequestor = temp;
                this.session.CloseSession();
            }
        }
        private void CreateTerminateRequestor()
        {
            ReliableRequestor temp = CreateRequestor();

            ConfigureRequestor(temp);
            ReliableMessagingVersion reliableMessagingVersion = Settings.ReliableMessagingVersion;

            temp.MessageAction = WsrmIndex.GetTerminateSequenceActionHeader(
                Settings.MessageVersion.Addressing, reliableMessagingVersion);
            temp.MessageBody = new TerminateSequence(reliableMessagingVersion, _session.OutputID,
                                                     Connection.Last);

            lock (ThisLock)
            {
                ThrowIfClosed();
                _terminateRequestor = temp;
                _session.CloseSession();
            }
        }