Partilhar via


NoRetry.ShouldRetry(Int32, Exception, TimeSpan) Método

Definição

Uma política para nunca tentar novamente

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

Parâmetros

currentRetryCount
Int32

A contagem de repetição atual.

lastException
Exception

A última exceção.

retryInterval
TimeSpan

O intervalo de repetição.

Retornos

Se deve ou não tentar novamente

Implementações

Aplica-se a