共用方式為


IotHubServiceNoRetry.ShouldRetry(UInt32, Exception, TimeSpan) Method

Definition

A policy to never retry

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

Parameters

currentRetryCount
UInt32

The current retry count.

lastException
Exception

The last exception.

retryInterval
TimeSpan

The retry interval.

Returns

Whether or not to retry

Implements

Applies to