HttpClientHedgingResiliencePredicates.IsTransient Methode

Definitie

Overloads

Name Description
IsTransient(Outcome<HttpResponseMessage>)

Bepaalt of een resultaat moet worden behandeld door hedging als een tijdelijke fout.

IsTransient(Outcome<HttpResponseMessage>, CancellationToken)

Bepaalt of een HttpResponseMessage moet worden behandeld door hedging als een tijdelijke fout.

IsTransient(Outcome<HttpResponseMessage>)

Bron:
HttpClientHedgingResiliencePredicates.cs
Bron:
HttpClientHedgingResiliencePredicates.cs

Bepaalt of een resultaat moet worden behandeld door hedging als een tijdelijke fout.

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

Parameters

outcome
Outcome<HttpResponseMessage>

Het resultaat van de door de gebruiker opgegeven callback.

Retouren

true als het resultaat tijdelijk is, false zo niet.

Van toepassing op

IsTransient(Outcome<HttpResponseMessage>, CancellationToken)

Bron:
HttpClientHedgingResiliencePredicates.cs
Bron:
HttpClientHedgingResiliencePredicates.cs

Bepaalt of een HttpResponseMessage moet worden behandeld door hedging als een tijdelijke fout.

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

Parameters

outcome
Outcome<HttpResponseMessage>

Het resultaat van de door de gebruiker opgegeven callback.

cancellationToken
CancellationToken

De CancellationToken gekoppelde aan de uitvoering.

Retouren

true als het resultaat tijdelijk is, false zo niet.

Kenmerken

Van toepassing op