I’m looking at the following reference for making asynchronous web requests with C#:
http://msdn.microsoft.com/en-us/library/86wf6409%28v=vs.100%29.aspx
When I build the sample code with only BeginGetResponse and EndGetResponse, my “asynchronous call” still takes hundreds of milliseconds to complete.
Can someone explain why the reading requires another asynchronous call, when the BeginGetResponse should already be on a separate thread?
I think that is mapped to underlying socket operations. BeginGetResponse establishes connection to server (that’s why it takes so long) and sends the request, while BeginRead waits for response data.