HttpClientHedgingResiliencePredicates.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
IsTransient(Outcome<HttpResponseMessage>) |
Bestimmt, ob ein Ergebnis durch Hedging als vorübergehender Fehler behandelt werden soll. |
IsTransient(Outcome<HttpResponseMessage>, CancellationToken) |
Bestimmt, ob ein HttpResponseMessage durch Hedging als vorübergehender Fehler behandelt werden soll. |
IsTransient(Outcome<HttpResponseMessage>)
Bestimmt, ob ein Ergebnis durch Hedging 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
- Polly.Outcome<HttpResponseMessage>
Das Ergebnis des vom Benutzer angegebenen Rückrufs.
Gibt zurück
true
, wenn das Ergebnis vorübergehend ist, false
wenn nicht.
Gilt für:
IsTransient(Outcome<HttpResponseMessage>, CancellationToken)
Bestimmt, ob ein HttpResponseMessage durch Hedging als vorübergehender Fehler behandelt werden soll.
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}")]
public static bool IsTransient (Polly.Outcome<System.Net.Http.HttpResponseMessage> outcome, System.Threading.CancellationToken cancellationToken);
static member IsTransient : Polly.Outcome<System.Net.Http.HttpResponseMessage> * System.Threading.CancellationToken -> bool
[<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
Public Shared Function IsTransient (outcome As Outcome(Of HttpResponseMessage), cancellationToken As CancellationToken) As Boolean
Parameter
- outcome
- Polly.Outcome<HttpResponseMessage>
Das Ergebnis des vom Benutzer angegebenen Rückrufs.
- cancellationToken
- CancellationToken
Die CancellationToken der Ausführung zugeordnete.
Gibt zurück
true
, wenn das Ergebnis vorübergehend ist, false
wenn nicht.
- Attribute