|
1 | 1 | ---
|
2 | 2 | title: Use IHttpClientFactory to implement resilient HTTP requests
|
3 |
| -description: Learn how to use IHttpClientFactory, available since .NET Core 2.1, for creating `HttpClient` instances, making it easy for you to use it in your applications. |
| 3 | +description: Learn how to use IHttpClientFactory, available since .NET Core 2.1, for creating `HttpClient` instances, making it easy for you to use it in your applications. |
4 | 4 | ms.date: 01/13/2021
|
5 | 5 | ---
|
6 | 6 | # Use IHttpClientFactory to implement resilient HTTP requests
|
@@ -54,7 +54,7 @@ There are several ways that you can use `IHttpClientFactory` in your application
|
54 | 54 | For the sake of brevity, this guidance shows the most structured way to use `IHttpClientFactory`, which is to use Typed Clients (Service Agent pattern). However, all options are documented and are currently listed in this [article covering the `IHttpClientFactory` usage](/aspnet/core/fundamentals/http-requests#consumption-patterns).
|
55 | 55 |
|
56 | 56 | > [!NOTE]
|
57 |
| -> If your app requires cookies, it might be better to avoid using <xref:System.Net.Http.IHttpClientFactory> in your app. For alternative ways of managing clients, see [Guidelines for using HTTP clients](../../../fundamentals/networking/http/httpclient-guidelines.md) |
| 57 | +> If your app requires cookies, it might be better to avoid using <xref:System.Net.Http.IHttpClientFactory> in your app. For alternative ways of managing clients, see [Guidelines for using HTTP clients](../../../fundamentals/networking/http/httpclient-guidelines.md). |
58 | 58 |
|
59 | 59 | ## How to use Typed Clients with IHttpClientFactory
|
60 | 60 |
|
@@ -191,19 +191,19 @@ Up to this point, the above code snippet only shows the example of performing re
|
191 | 191 |
|
192 | 192 | ## Additional resources
|
193 | 193 |
|
194 |
| -- **HttpClient guidelines for .NET** |
| 194 | +- **HttpClient guidelines for .NET** |
195 | 195 | [https://learn.microsoft.com/en-us/dotnet/fundamentals/networking/http/httpclient-guidelines](../../../fundamentals/networking/http/httpclient-guidelines.md)
|
196 | 196 |
|
197 |
| -- **Using HttpClientFactory in .NET** |
| 197 | +- **Using HttpClientFactory in .NET** |
198 | 198 | [https://learn.microsoft.com/en-us/dotnet/core/extensions/httpclient-factory](../../../core/extensions/httpclient-factory.md)
|
199 | 199 |
|
200 |
| -- **Using HttpClientFactory in ASP.NET Core** |
| 200 | +- **Using HttpClientFactory in ASP.NET Core** |
201 | 201 | [https://learn.microsoft.com/aspnet/core/fundamentals/http-requests](/aspnet/core/fundamentals/http-requests)
|
202 | 202 |
|
203 |
| -- **HttpClientFactory source code in the `dotnet/runtime` GitHub repository** |
| 203 | +- **HttpClientFactory source code in the `dotnet/runtime` GitHub repository** |
204 | 204 | <https://github.com/dotnet/runtime/tree/release/7.0/src/libraries/Microsoft.Extensions.Http/>
|
205 | 205 |
|
206 |
| -- **Polly (.NET resilience and transient-fault-handling library)** |
| 206 | +- **Polly (.NET resilience and transient-fault-handling library)** |
207 | 207 | <https://thepollyproject.azurewebsites.net/>
|
208 | 208 |
|
209 | 209 | >[!div class="step-by-step"]
|
|
0 commit comments