BotFrameworkHttpStatusCodeErrorDetectionStrategy 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
機器人框架 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>