Skip to content

Conversation

fcdeveloper00
Copy link
Contributor

@fcdeveloper00 fcdeveloper00 commented Sep 2, 2025

Hi, regarding to this sentence of the article :
In the code, when the inner exception is an TimeoutException type, then the time-out occurred and the cancellation token doesn't cancel the request.

  • Declares a variable named cts which is of CancellationTokenSource type and adds it as argument to the httpClient.GetAsync method.
  • To clarify more, adds a single-line comment about the exception.

Please check them out. Thanks!

@fcdeveloper00 fcdeveloper00 requested a review from a team as a code owner September 2, 2025 18:49
@dotnetrepoman dotnetrepoman bot added this to the September 2025 milestone Sep 2, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-fundamentals/svc dotnet-networking/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Sep 2, 2025
@fcdeveloper00 fcdeveloper00 changed the title NO.1 | Update the code snippet of httpclient.md NO.1 | Update a code snippet in httpclient.md Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Indicates PR is created by someone from the .NET community. dotnet-fundamentals/svc dotnet-networking/subsvc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant