Skip to content

The new dotnet version httpclient-json can be used. #47386

@a44281071

Description

@a44281071

Type of issue

Outdated article

Description

In the "Tutorial" entry of the documentation, the approach shown for accessing the HTTP interface from a C# client is not the recommended way to work with JSON data.
The recommended approach is to use using System.Net.Http.Json; and leverage the extension methods provided by that namespace to call the interface.

Page URL

https://learn.microsoft.com/zh-cn/dotnet/csharp/tutorials/console-webapiclient

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/tutorials/console-webapiclient.md

Document Version Independent Id

5415878b-e60b-5433-7b4b-efc8259908f0

Platform Id

1818f1ab-6db8-c7f8-1cb5-796181029761

Article author

@BillWagner

Metadata

  • ID: 3bfcc1a8-ddda-810c-17b0-56a506045d67
  • PlatformId: 1818f1ab-6db8-c7f8-1cb5-796181029761
  • Service: dotnet-csharp
  • Sub-service: fundamentals

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions