[automated] Merge branch 'main' => 'dev' (#5448)

This commit is contained in:
Igor Velikorossov 2024-09-26 20:31:27 +10:00 коммит произвёл GitHub
Родитель 4e65e5a8a2 5dc6476147
Коммит cbedf9fc01
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 9 добавлений и 4 удалений

Просмотреть файл

@ -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()
{