зеркало из https://github.com/dotnet/extensions.git
[automated] Merge branch 'main' => 'dev' (#5448)
This commit is contained in:
Коммит
cbedf9fc01
|
@ -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;
|
||||
|
||||
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -7,6 +7,7 @@ using System.Threading.Tasks;
|
|||
using Microsoft.Extensions.Http.Resilience.Internal;
|
||||
using Polly;
|
||||
using Polly.Retry;
|
||||
using Polly.Timeout;
|
||||
|
||||
namespace Microsoft.Extensions.Http.Resilience;
|
||||
|
||||
|
@ -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()
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче