private bool HandleWriteStartBytes(IAsyncResult result)
            {
                this.connection.EndWrite(result);
                Stream stream  = new StreamingConnectionHelper.StreamingOutputConnectionStream(this.connection, this.settings);
                Stream stream2 = new TimeoutStream(stream, ref this.timeoutHelper);

                this.encoder.WriteMessage(this.message, stream2);
                return(this.WriteEndBytes());
            }
 private bool HandleWriteStartBytes(IAsyncResult result)
 {
     this.connection.EndWrite(result);
     Stream stream = new StreamingConnectionHelper.StreamingOutputConnectionStream(this.connection, this.settings);
     Stream stream2 = new TimeoutStream(stream, ref this.timeoutHelper);
     this.encoder.WriteMessage(this.message, stream2);
     return this.WriteEndBytes();
 }