HttpClientResiliencePredicates.IsTransient Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ü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>)
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
- outcome
- Outcome<HttpResponseMessage>
Gibt zurück
true wenn das Ergebnis vorübergehend ist, false wenn nicht.
Gilt für:
IsTransient(Outcome<HttpResponseMessage>, CancellationToken)
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