Delen via


BotFrameworkHttpStatusCodeErrorDetectionStrategy.IsTransient Methode

Definitie

Retourneert true als de statuscode in de uitzondering HttpRequestExceptionWithStatus RequestTimeout, TooManyRequests, NotFound of groter dan of gelijk is aan 500 en niet Niet geïmplementeerd (501) of HttpVersionNotSupported (505).

public bool IsTransient(Exception ex);
abstract member IsTransient : Exception -> bool
override this.IsTransient : Exception -> bool
Public Function IsTransient (ex As Exception) As Boolean

Parameters

ex
Exception

Uitzondering om op te controleren.

Retouren

Waar als de uitzondering tijdelijk is, anders onwaar.

Implementeringen

Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy.IsTransient(System.Exception)

Van toepassing op