Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

using System.Net.Http;
using System.Threading.Tasks;
using Polly.CircuitBreaker;
using Polly.Hedging;
using Polly.Timeout;

namespace Microsoft.Extensions.Http.Resilience;

Expand All @@ -16,8 +18,9 @@ public class HttpHedgingStrategyOptions : HedgingStrategyOptions<HttpResponseMes
/// Initializes a new instance of the <see cref="HttpHedgingStrategyOptions"/> class.
/// </summary>
/// <remarks>
/// By default, the options are set to handle only transient failures,
/// that is, timeouts, 5xx responses, and <see cref="HttpRequestException"/> exceptions.
/// By default, the options are configured to handle only transient failures.
/// Specifically, this includes HTTP status codes 408, 429, 500 and above,
/// as well as <see cref="HttpRequestException"/>, <see cref="BrokenCircuitException"/>, and <see cref="TimeoutRejectedException"/> exceptions.
/// </remarks>
public HttpHedgingStrategyOptions()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Microsoft.Extensions.Http.Resilience.Internal;
using Polly;
using Polly.Retry;
using Polly.Timeout;

namespace Microsoft.Extensions.Http.Resilience;

Expand All @@ -21,8 +22,9 @@ public class HttpRetryStrategyOptions : RetryStrategyOptions<HttpResponseMessage
/// Initializes a new instance of the <see cref="HttpRetryStrategyOptions"/> class.
/// </summary>
/// <remarks>
/// By default, the options are set to handle only transient failures,
/// that is, timeouts, 5xx responses, and <see cref="HttpRequestException"/> exceptions.
/// By default, the options are configured to handle only transient failures.
/// Specifically, this includes HTTP status codes 408, 429, 500 and above,
/// as well as <see cref="HttpRequestException"/> and <see cref="TimeoutRejectedException"/> exceptions.
/// </remarks>
public HttpRetryStrategyOptions()
{
Expand Down
Loading