Compartilhar via


IotHubServiceExponentialBackoffRetryPolicy(UInt32, TimeSpan, Boolean) Construtor

Definição

Cria uma instância dessa classe.

public IotHubServiceExponentialBackoffRetryPolicy (uint maxRetries, TimeSpan maxWait, bool useJitter = true);
new Microsoft.Azure.Devices.IotHubServiceExponentialBackoffRetryPolicy : uint32 * TimeSpan * bool -> Microsoft.Azure.Devices.IotHubServiceExponentialBackoffRetryPolicy
Public Sub New (maxRetries As UInteger, maxWait As TimeSpan, Optional useJitter As Boolean = true)

Parâmetros

maxRetries
UInt32

O número máximo de tentativas de repetição; use 0 para repetições infinitas.

maxWait
TimeSpan

A quantidade máxima de tempo de espera entre novas tentativas (não excederá ~12,43 dias).

useJitter
Boolean

Se é necessário adicionar um pequeno ajuste aleatório ao atraso de repetição para evitar a sincronização nos clientes que tentam novamente.

Exceções

Gere se o valor de maxWait for negativo.

Aplica-se a