Partager via


IotHubClientNoRetry.ShouldRetry(UInt32, Exception, TimeSpan) Méthode

Définition

Stratégie à ne jamais réessayer

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

Paramètres

currentRetryCount
UInt32

Nombre actuel de nouvelles tentatives.

lastException
Exception

Dernière exception.

retryInterval
TimeSpan

Intervalle de nouvelle tentative.

Retours

S’il faut réessayer ou non

Implémente

S’applique à