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); }
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; }