Sprache

HttpClientResiliencePredicates.IsTransient Methode

Definition

Überlädt

Name Beschreibung
IsTransient(Outcome<HttpResponseMessage>)

Bestimmt, ob ein Ergebnis durch Resilienzstrategien als vorübergehender Fehler behandelt werden soll.

IsTransient(Outcome<HttpResponseMessage>, CancellationToken)

Bestimmt, ob eine HttpResponseMessage Resilienzstrategien als vorübergehender Fehler behandelt werden soll.

IsTransient(Outcome<HttpResponseMessage>)

Quelle:
HttpClientResiliencePredicates.cs

Bestimmt, ob ein Ergebnis durch Resilienzstrategien als vorübergehender Fehler behandelt werden soll.

public:
 static bool IsTransient(Polly::Outcome<System::Net::Http::HttpResponseMessage ^> outcome);
public static bool IsTransient(Polly.Outcome<System.Net.Http.HttpResponseMessage> outcome);
static member IsTransient : Polly.Outcome<System.Net.Http.HttpResponseMessage> -> bool
Public Shared Function IsTransient (outcome As Outcome(Of HttpResponseMessage)) As Boolean

Parameter

Gibt zurück

true wenn das Ergebnis vorübergehend ist, false wenn nicht.

Gilt für:

IsTransient(Outcome<HttpResponseMessage>, CancellationToken)

Quelle:
HttpClientResiliencePredicates.cs

Bestimmt, ob eine HttpResponseMessage Resilienzstrategien als vorübergehender Fehler behandelt werden soll.

public:
 static bool IsTransient(Polly::Outcome<System::Net::Http::HttpResponseMessage ^> outcome, System::Threading::CancellationToken cancellationToken);
[System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public static bool IsTransient(Polly.Outcome<System.Net.Http.HttpResponseMessage> outcome, System.Threading.CancellationToken cancellationToken);
public static bool IsTransient(Polly.Outcome<System.Net.Http.HttpResponseMessage> outcome, System.Threading.CancellationToken cancellationToken);
[<System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
static member IsTransient : Polly.Outcome<System.Net.Http.HttpResponseMessage> * System.Threading.CancellationToken -> bool
static member IsTransient : Polly.Outcome<System.Net.Http.HttpResponseMessage> * System.Threading.CancellationToken -> bool
Public Shared Function IsTransient (outcome As Outcome(Of HttpResponseMessage), cancellationToken As CancellationToken) As Boolean

Parameter

outcome
Outcome<HttpResponseMessage>

Das Ergebnis des vom Benutzer angegebenen Rückrufs.

cancellationToken
CancellationToken

Der CancellationToken Ausführung zugeordnet.

Gibt zurück

true wenn das Ergebnis vorübergehend ist, false wenn nicht.

Attribute

Gilt für: