Microsoft.Protocols.TestSuites.Common.ResponseMessageBodyWriter.OnWriteBodyContents C# (CSharp) Method

OnWriteBodyContents() protected method

Override the method to write the content to the xml dictionary writer.
protected OnWriteBodyContents ( System writer ) : void
writer System Specify the output destination of the content.
return void
        protected override void OnWriteBodyContents(System.Xml.XmlDictionaryWriter writer)
        {
            byte[] bytes = new byte[this.stream.Length];
            this.stream.Position = 0;
            this.stream.Read(bytes, 0, bytes.Length);
            writer.WriteRaw(this.encoding.GetString(bytes));
        }
    }