Tuesday, May 30, 2023

[Video] .Net Framework v/s .Net - HttpClient throwing TaskCancelled instead on Timeout

Today released a new video after long time. It is talking about 2 scenarios in .Net ecosystem related to HttpClient class and how it handles timeouts.

  • It is not throwing timeout exception on timeout
  • The behavior of handling timeout is different in traditional .Net Framework and modern .Net

Watch the video for more details



References

https://thomaslevesque.com/2018/02/25/better-timeout-handling-with-httpclient/

No comments: