1
Answer

If WebRequest.Abort() before BeginGetResponse-CallBack?

mmplay

mmplay

20y
4.9k
1
Hi When I send BeginGetResponse() to the server, then WebRequest.Abort() before BeginGetResponse-CallBack, the WebReuest is correct aborted, but the BeginGetResponse-CallBack still runs a few later. So, it will get a WebException. Because cann't call EndGetResponse(EndGetResponse was called in BeginGetResponse-CallBack) after WebRequest.Abort() How to do that if WebRequest.Abort() before BeginGetResponse-CallBack? Thanks
Answers (1)