public override IAsyncResult BeginWriteBlock(byte[] data, int startIndex, int length, AsyncCallback userCallback, object stateObject)
 {
     return(writeInvoker.BeginInvoke(
                () => base.WriteBlock(data, startIndex, length),
                userCallback, stateObject));
 }
 public override IAsyncResult BeginWriteFrame(bool isKeyFrame, byte[] frameData, int startIndex, int length, AsyncCallback userCallback, object stateObject)
 {
     return(writeInvoker.BeginInvoke(
                () => base.WriteFrame(isKeyFrame, frameData, startIndex, length),
                userCallback, stateObject));
 }