語言

BotFrameworkHttpStatusCodeErrorDetectionStrategy 類別

定義

機器人框架 HTTP 狀態碼錯誤偵測策略。

public class BotFrameworkHttpStatusCodeErrorDetectionStrategy : Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy
type BotFrameworkHttpStatusCodeErrorDetectionStrategy = class
    interface ITransientErrorDetectionStrategy
Public Class BotFrameworkHttpStatusCodeErrorDetectionStrategy
Implements ITransientErrorDetectionStrategy
繼承
BotFrameworkHttpStatusCodeErrorDetectionStrategy
實作
Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy

建構函式

名稱 Description
BotFrameworkHttpStatusCodeErrorDetectionStrategy()

機器人框架 HTTP 狀態碼錯誤偵測策略。

方法

名稱 Description
IsTransient(Exception)

若 HttpRequestExceptionWithStatus 例外中的狀態碼為 RequestTimeout、TooManyRequests、NotFound 或大於 500,且非 NotImplemented (501) 或 HttpVersionNotSupported (505) 時,則 NotTrue。

適用於

另請參閱

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