Udostępnij przez


BotFrameworkHttpStatusCodeErrorDetectionStrategy.IsTransient Metoda

Definicja

Zwraca wartość true, jeśli kod stanu w wyjątku HttpRequestExceptionWithStatus to RequestTimeout, TooManyRequests, NotFound lub większy lub równy 500, a nie NotImplemented (501) lub 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

Parametry

ex
Exception

Wyjątek do sprawdzania.

Zwraca

Wartość True, jeśli wyjątek jest przejściowy, w przeciwnym razie wartość false.

Implementuje

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

Dotyczy