IotHubServiceRetryPolicyBase.ShouldRetry(UInt32, Exception, TimeSpan) メソッド

定義

再試行の前にクライアントによって呼び出されるメソッド。

public virtual bool ShouldRetry (uint currentRetryCount, Exception lastException, out TimeSpan retryDelay);
abstract member ShouldRetry : uint32 * Exception * TimeSpan -> bool
override this.ShouldRetry : uint32 * Exception * TimeSpan -> bool
Public Overridable Function ShouldRetry (currentRetryCount As UInteger, lastException As Exception, ByRef retryDelay As TimeSpan) As Boolean

パラメーター

currentRetryCount
UInt32

現在の操作が試行された回数。

lastException
Exception

この再試行ポリシーの原因となった例外チェック。

retryDelay
TimeSpan

これは、次の試行の前に必要な遅延に設定します。

戻り値

操作を再試行する場合は True、それ以外の場合は false。

実装

適用対象