The HttpClient factory is a pattern for configuring and retrieving named HttpClients in a composable way. The HttpClient factory provides extensibility to plug in DelegatingHandlers that address cross-cutting concerns such as service location, load balancing, and reliability. The default HttpClient factory provides built-in diagnostics and logging and manages the lifetimes of connections in a performant way. Commonly Used Types: System.Net.Http.IHttpClientFactory When using NuGet 3.x this package requires at least version 3.4.
dotnet add package Microsoft.Extensions.Http --version 5.0.0-preview.5.20278.1
Install-Package Microsoft.Extensions.Http -Version 5.0.0-preview.5.20278.1
| 包名 | 版本要求 |
|---|---|
| Microsoft.Extensions.DependencyInjection.Abstractions | [5.0.0-preview.5.20278.1, ) |
| Microsoft.Extensions.Logging | [5.0.0-preview.5.20278.1, ) |
| Microsoft.Extensions.Logging.Abstractions | [5.0.0-preview.5.20278.1, ) |
| Microsoft.Extensions.Options | [5.0.0-preview.5.20278.1, ) |
| 作者 | Microsoft |
|---|---|
| 发布时间 | 2020-06-10 15:14:09 |
| 项目主页 | https://github.com/dotnet/runtime |
| 许可证 | https://www.nuget.org/packages/Microsoft.Extensions.Http/5.0.0-preview.5.20278.1/license |