/// <summary> /// Finish and retrieve the content body for transmission. /// </summary> /// <remarks> /// Calling this message clears Body to null. Subsequent calls will fault. /// </remarks> public override byte[] GetContentBody() { MapWireFormatting.WriteMap(Writer, Body); byte[] res = base.GetContentBody(); Body = null; return(res); }
///<summary>Override superclass method to write Body out into ///the message BodyStream before retrieving the final byte ///array.</summary> ///<remarks> /// Calling this message clears Body to null. Subsequent calls /// will fault. ///</remarks> public override byte[] GetContentBody() { MapWireFormatting.WriteMap(Writer, m_table); m_table = null; return(base.GetContentBody()); }
/// <summary> /// Finish and retrieve the content body for transmission. /// </summary> /// <remarks> /// Calling this message clears Body to null. Subsequent calls will fault. /// </remarks> public override byte[] GetContentBody() { Body = null; MapWireFormatting.WriteMap(Writer, Body); return(base.GetContentBody()); }