@@ -16,11 +16,11 @@ namespace Microsoft.Extensions.Http;
1616/// <remarks>
1717/// <para>
1818/// This message handler implementation supports the use of policies provided by the Polly library for
19- /// transient-fault- handling and resiliency.
19+ /// transient-fault handling and resiliency.
2020/// </para>
2121/// <para>
2222/// The documentation provided here is focused guidance for using Polly together with the <see cref="IHttpClientFactory"/>.
23- /// See the Polly project and its documentation (<see href="https://github.com/app-vnext/Polly"/>) for authoritative information on Polly .
23+ /// For authoritative information on Polly, see the Polly project and its documentation (<see href="https://github.com/app-vnext/Polly"/>).
2424/// </para>
2525/// <para>
2626/// The extension methods on <see cref="PollyHttpClientBuilderExtensions"/> are designed as a convenient and correct
@@ -37,19 +37,17 @@ namespace Microsoft.Extensions.Http;
3737/// by using the generic methods on <see cref="Policy"/> such as <see cref="Policy.TimeoutAsync{TResult}(int)"/>.
3838/// </para>
3939/// <para>
40- /// To adapt an existing non-generic <see cref="IAsyncPolicy"/>, use code like the following:
41- /// <example>
42- /// Converting a non-generic <c>IAsyncPolicy policy</c> to <see cref="IAsyncPolicy{HttpResponseMessage}"/>.
43- /// <code>
40+ /// To adapt an existing non-generic <see cref="IAsyncPolicy"/>, use code like the following that converts a
41+ /// non-generic <c>IAsyncPolicy policy</c> to <see cref="IAsyncPolicy{HttpResponseMessage}"/>:
42+ /// <code lang="csharp">
4443/// policy.AsAsyncPolicy<HttpResponseMessage>()
4544/// </code>
46- /// </example>
4745/// </para>
4846/// <para>
4947/// The <see cref="PollyHttpClientBuilderExtensions.AddTransientHttpErrorPolicy(IHttpClientBuilder, Func{PolicyBuilder{HttpResponseMessage}, IAsyncPolicy{HttpResponseMessage}})"/>
5048/// method is an opinionated convenience method that supports the application of a policy for requests that fail due
5149/// to a connection failure or server error (5XX HTTP status code). This kind of method supports only reactive policies
52- /// such as Retry, Circuit-Breaker or Fallback. This method is only provided for convenience; we recommend creating
50+ /// such as Retry, Circuit-Breaker, or Fallback. This method is only provided for convenience; we recommend creating
5351/// your own policies as needed if this does not meet your requirements.
5452/// </para>
5553/// <para>
@@ -66,8 +64,8 @@ namespace Microsoft.Extensions.Http;
6664/// and ensure that they can be used when the handler rotation feature is active.
6765/// </para>
6866/// <para>
69- /// The <see cref="PolicyHttpMessageHandler"/> will attach a context to the <see cref="HttpRequestMessage"/> prior
70- /// to executing a <see cref="Policy"/>, if one does not already exist. The <see cref="Context"/> will be provided
67+ /// The <see cref="PolicyHttpMessageHandler"/> attaches a context to the <see cref="HttpRequestMessage"/> prior
68+ /// to executing a <see cref="Policy"/>, if one does not already exist. The <see cref="Context"/> is provided
7169/// to the policy for use inside the <see cref="Policy"/> and in other message handlers.
7270/// </para>
7371/// </remarks>
0 commit comments