Freigeben über


BotFrameworkHttpStatusCodeErrorDetectionStrategy.IsTransient Methode

Definition

Gibt true zurück, wenn der Statuscode in der HttpRequestExceptionWithStatus-Ausnahme RequestTimeout, TooManyRequests, NotFound oder größer oder gleich 500 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

Zu überprüfende Ausnahme.

Gibt zurück

True, wenn die Ausnahme vorübergehend ist, andernfalls false.

Implementiert

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

Gilt für: