Sprache

BotFrameworkHttpStatusCodeErrorDetectionStrategy.IsTransient Methode

Definition

Wird true zurück, wenn der Statuscode in der HttpRequestExceptionWithStatus-Ausnahme RequestTimeout, TooManyRequests, NotFound oder größer als oder gleich 500 ist und nicht NotImplemented (501) oder HttpVersionNotSupported (505) ist.

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

Parameter

ex
Exception

Eine Ausnahme, gegen die man sich abhaken sollte.

Gibt zurück

Wahr, wenn Ausnahme vorübergehend ist, sonst falsch.

Implementiert

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

Gilt für: