Share via


BotFrameworkHttpStatusCodeErrorDetectionStrategy.IsTransient Method

Definition

Returns true if status code in HttpRequestExceptionWithStatus exception is RequestTimeout, TooManyRequests, NotFound or greater than or equal to 500 and not NotImplemented (501) or 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

Exception to check against.

Returns

True if exception is transient otherwise false.

Implements

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

Applies to