/// <summary> /// Remove unfinished parts of the outbound message from the pipe. /// </summary> public void Rollback() { // Remove incomplete message from the outbound pipe. if (m_outboundPipe != null) { var msg = new Msg(); while (m_outboundPipe.Unwrite(ref msg)) { Debug.Assert(msg.HasMore); msg.Close(); } } }
/// <summary> Remove unfinished parts of the outbound message from the pipe. </summary> public void Rollback() { // Remove incomplete message from the outbound pipe. Msg msg = new Msg(); if (m_outboundPipe != null) { while (m_outboundPipe.Unwrite(ref msg)) { Debug.Assert((msg.Flags & MsgFlags.More) != 0); msg.Close(); } } }