Condividi tramite


IotHubClientFixedDelayRetryPolicy.ShouldRetry Method

Definition

Returns true if, based on the parameters, the operation should be retried.

public override bool ShouldRetry (uint currentRetryCount, Exception lastException, out TimeSpan retryInterval);
override this.ShouldRetry : uint32 * Exception * TimeSpan -> bool
Public Overrides Function ShouldRetry (currentRetryCount As UInteger, lastException As Exception, ByRef retryInterval As TimeSpan) As Boolean

Parameters

currentRetryCount
UInt32

How many times the operation has been retried.

lastException
Exception

Operation exception.

retryInterval
TimeSpan

Next retry should be performed after this time interval.

Returns

True if the operation should be retried, false otherwise.

Applies to