Megosztás a következőn keresztül:


IotHubServiceFixedDelayRetryPolicy(UInt32, TimeSpan, Boolean) Constructor

Definition

Creates an instance of this class.

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

Parameters

maxRetries
UInt32

The maximum number of retry attempts; use 0 for infinite retries.

fixedDelay
TimeSpan

The fixed delay to wait between retries.

useJitter
Boolean

Whether to add a small, random adjustment to the retry delay to avoid synchronicity in retrying clients.

Exceptions

Throw if the value of fixedDelay is negative.

Applies to