BotFrameworkHttpStatusCodeErrorDetectionStrategy 类

定义

Bot Framework HTTP 状态代码错误检测策略。

public class BotFrameworkHttpStatusCodeErrorDetectionStrategy : Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy
type BotFrameworkHttpStatusCodeErrorDetectionStrategy = class
    interface ITransientErrorDetectionStrategy
Public Class BotFrameworkHttpStatusCodeErrorDetectionStrategy
Implements ITransientErrorDetectionStrategy
继承
BotFrameworkHttpStatusCodeErrorDetectionStrategy
实现
Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy

构造函数

BotFrameworkHttpStatusCodeErrorDetectionStrategy()

Bot Framework HTTP 状态代码错误检测策略。

方法

IsTransient(Exception)

如果 HttpRequestExceptionWithStatus 异常中的状态代码为 RequestTimeout、TooManyRequests、NotFound 或大于或等于 500,而不是 NotImplemented (501) 或 HttpVersionNotSupported (505) ,则返回 true。

适用于

另请参阅

  • <xref:Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy>