Partager via


IotHubClientExponentialBackoffRetryPolicy.ShouldRetry Méthode

Définition

Retourne true si, en fonction des paramètres, l’opération doit être retentée.

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

Paramètres

currentRetryCount
UInt32

Nombre de fois que l’opération a été retentée.

lastException
Exception

Exception d’opération.

retryInterval
TimeSpan

La prochaine nouvelle tentative doit être effectuée après cet intervalle de temps.

Retours

True si l’opération doit être retentée, false dans le cas contraire.

S’applique à