Click here to Skip to main content
15,305,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am making a asynchronous web request in c#, and i want that the request should be alive only for a defined time(let say 30sec).
I tried to use "Timeout" property but it will only work for synchronous web request.

Please suggest any way to do this.
Thanks in advance.
Posted

1 solution

Well, this[^] article has a pretty decent way to do this.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900