Język

HttpRetryStrategyOptions Klasa

Definicja

Implementacja RetryStrategyOptions`1 elementu dla HttpResponseMessage wyników.

public ref class HttpRetryStrategyOptions : Polly::Retry::RetryStrategyOptions<System::Net::Http::HttpResponseMessage ^>
public class HttpRetryStrategyOptions : Polly.Retry.RetryStrategyOptions<System.Net.Http.HttpResponseMessage>
type HttpRetryStrategyOptions = class
    inherit RetryStrategyOptions<HttpResponseMessage>
Public Class HttpRetryStrategyOptions
Inherits RetryStrategyOptions(Of HttpResponseMessage)
Dziedziczenie
HttpRetryStrategyOptions

Konstruktory

Nazwisko Opis
HttpRetryStrategyOptions()

Inicjuje nowe wystąpienie klasy HttpRetryStrategyOptions.

Właściwości

Nazwisko Opis
RetryBudget

Pobiera lub ustawia opcje budżetu ponawiania.

ShouldRetryAfterHeader

Pobiera lub ustawia wartość wskazującą, czy używać nagłówka Retry-After dla opóźnień ponawiania prób.

Metody rozszerzania

Nazwisko Opis
DisableFor(HttpRetryStrategyOptions, HttpMethod[])

Wyłącza próby ponawiania próby dla danej listy metod HTTP.

DisableForUnsafeHttpMethods(HttpRetryStrategyOptions)

Wyłącza próby ponawiania prób dla metod POST, PATCH, PUT, DELETE i CONNECT HTTP.

UseBudgetedRetries(HttpRetryStrategyOptions)

Umożliwia ponawianie próby budżetu z wartościami domyślnymi, aby zmniejszyć dodatkowe obciążenie, które ponawia próbę w zależności obniżonej wydajności.

Dotyczy