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