Exemple #1
0
 public ReadAsyncResult(SingletonConnectionReader.SingletonInputConnectionStream parent, byte[] buffer, int offset, int count, AsyncCallback callback, object state) : base(callback, state)
 {
     this.parent = parent;
     this.result = this.parent.Read(buffer, offset, count);
     base.Complete(true);
 }
 public ReadAsyncResult(SingletonConnectionReader.SingletonInputConnectionStream parent, byte[] buffer, int offset, int count, AsyncCallback callback, object state) : base(callback, state)
 {
     this.parent = parent;
     this.result = this.parent.Read(buffer, offset, count);
     base.Complete(true);
 }