コード例 #1
0
 public override IAsyncResult BeginGetResponse(AsyncCallback callback, object state)
 {
     if (_responseStreamException != null)
     {
         throw _responseStreamException;
     }
     _webResponseAsyncResult = new TestAsyncResult(callback, state, _latency); //we want to introduce latency on getting the response
     return(_webResponseAsyncResult);
 }
コード例 #2
0
 public override IAsyncResult BeginGetResponse(AsyncCallback callback, object state)
 {
     if (_responseStreamException != null)
     {
         throw _responseStreamException;
     }
     _webResponseAsyncResult = new TestAsyncResult(callback, state, _latency); //we want to introduce latency on getting the response
     return _webResponseAsyncResult;
 }