BotFrameworkHttpStatusCodeErrorDetectionStrategy.IsTransient 方法

定义

如果 HttpRequestExceptionWithStatus 例外中的状态代码为 RequestTimeout、TooManyRequests、NotFound 或大于 500 且非 NotImplemented (501) 或 HttpVersionNotSupported (505) 时,则返回 true。

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

参数

ex
Exception

需要核对的例外。

返回

如果异常是暂时的,则为真,否则为假。

实现

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

适用于