BotFrameworkHttpStatusCodeErrorDetectionStrategy.IsTransient 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
如果 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)