Microsoft.Protocols.TestSuites.Common.WOPIMessageEncoder.WriteMessage C# (CSharp) Method

WriteMessage() public method

This method is used to write a message less than a specified size to a byte array buffer at the specified offset using the inner message encoder.
public WriteMessage ( Message message, int maxMessageSize, System.ServiceModel.Channels.BufferManager bufferManager, int messageOffset ) : ArraySegment
message Message Specify the message which is needed to be written into buffer.
maxMessageSize int Specify the max size of the message.
bufferManager System.ServiceModel.Channels.BufferManager Specify the buffer manager.
messageOffset int Specify the offset of the segment that begins from the start of the byte array that provides the buffer.
return ArraySegment
        public override ArraySegment<byte> WriteMessage(Message message, int maxMessageSize, BufferManager bufferManager, int messageOffset)
        {
            return this.innerEncoder.WriteMessage(message, maxMessageSize, bufferManager, messageOffset);
        }

Same methods

WOPIMessageEncoder::WriteMessage ( Message message, System stream ) : void