Compartilhar via


IotHubServiceExponentialBackoffRetryPolicy.ShouldRetry Método

Definição

Retorna true se, com base nos parâmetros, a operação deve ser repetida.

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

Parâmetros

currentRetryCount
UInt32

Quantas vezes a operação foi repetida.

lastException
Exception

Exceção de operação.

retryInterval
TimeSpan

A próxima repetição deve ser executada após esse intervalo de tempo.

Retornos

True se a operação deve ser repetida, caso contrário, false.

Aplica-se a