Partager via


ExponentialBackoff.ShouldRetry(Int32, Exception, TimeSpan) Méthode

Définition

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

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

Paramètres

currentRetryCount
Int32

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.

Implémente

S’applique à