Skip to content

Shows how the HttpClient class handles timeout differently in differently in .Net Framework and .Net 6

License

Notifications You must be signed in to change notification settings

dotnet-demos/httpclient-taskcancelledexception

Repository files navigation

Demos difference between HttpClient Timeout in .Net Framework and .Net 6

How to Run

There are 2 test projects in the solution. One is .Net Framework 4.8 and other .Net 6. Run the tests.

Prefer Visual Studio 2022 and run in debug mode.

Output .Net 4.8

.Net 4.8 showing no inner TimeoutExeption

Output .Net 6

.Net 6 showing inner TimeoutExeption

Specifications

  • .Net version - .Net Framework 4.8 & .Net 6
  • Nugets referenced
    • coverlet.collector

About

Shows how the HttpClient class handles timeout differently in differently in .Net Framework and .Net 6

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages