internal IAsyncResult BeginClose(AsyncCallback callback, object state) { MultiAsyncResult multiResult = new MultiAsyncResult(this, callback, state); Close(multiResult); multiResult.CompleteSequence(); return(multiResult); }
internal IAsyncResult BeginGetContentStream(AsyncCallback callback, object state) { MultiAsyncResult multiResult = new MultiAsyncResult(this, callback, state); Stream s = GetContentStream(multiResult); if (!(multiResult.Result is Exception)) { multiResult.Result = s; } multiResult.CompleteSequence(); return(multiResult); }