Skip to content

Commit 109c07f

Browse files
committed
encode angle brackets
1 parent d5b0049 commit 109c07f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/Microsoft.Extensions.Http/PolicyHttpMessageHandler.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The <xref:Microsoft.Extensions.DependencyInjection.PollyHttpClientBuilderExtensi
3838
To adapt an existing non-generic <xref:Polly.IAsyncPolicy>, use code like the following:
3939
4040
```csharp
41-
policy.AsAsyncPolicy<HttpResponseMessage>()
41+
policy.AsAsyncPolicy&lt;HttpResponseMessage&gt;()
4242
```
4343
4444
The <xref:Microsoft.Extensions.DependencyInjection.PollyHttpClientBuilderExtensions.AddTransientHttpErrorPolicy(Microsoft.Extensions.DependencyInjection.IHttpClientBuilder,System.Func{Polly.PolicyBuilder{System.Net.Http.HttpResponseMessage},Polly.IAsyncPolicy{System.Net.Http.HttpResponseMessage}})> method is an opinionated convenience method that supports the application of a policy for requests that fail due to a connection failure or server error (5XX HTTP status code). This kind of method supports only reactive policies such as Retry, Circuit-Breaker or Fallback. This method is only provided for convenience; we recommend creating your own policies as needed if this does not meet your requirements.

0 commit comments

Comments
 (0)