test
- public override ArraySegment<byte> WriteMessage(Message message, int maxMessageSize, BufferManager bufferManager, int messageOffset)
- {
- if (this.ShouldWriteMtom(message))
- {
- return this.mtomEncoder.WriteMessage(message, maxMessageSize, bufferManager, messageOffset);
- }
- else
- {
- return this.textEncoder.WriteMessage(message, maxMessageSize, bufferManager, messageOffset);
- }
- }