Share via


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>