C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,995 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello.
I have carefully read the code example at https://learn.microsoft.com/ru-ru/dotnet/api/system.net.httpwebrequest.begingetresponse?view=net-5.0#-----------
and tried to run it. It worked fine, but i wanted to test TimeoutCallback (when timedout == true) by decreasing DefaultTimeout to 500 ms. And i got 2 exceptions: