ProvisioningClientExponentialBackoffRetryPolicy Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an instance of this class.
public ProvisioningClientExponentialBackoffRetryPolicy (uint maxRetries, TimeSpan maxWait, bool useJitter = true);
new Microsoft.Azure.Devices.Provisioning.Client.ProvisioningClientExponentialBackoffRetryPolicy : uint32 * TimeSpan * bool -> Microsoft.Azure.Devices.Provisioning.Client.ProvisioningClientExponentialBackoffRetryPolicy
Public Sub New (maxRetries As UInteger, maxWait As TimeSpan, Optional useJitter As Boolean = true)
Parameters
- maxRetries
- UInt32
The maximum number of retry attempts; use 0 for infinite retries.
- maxWait
- TimeSpan
The maximum amount of time to wait between retries (will not exceed ~12.43 days).
- useJitter
- Boolean
Whether to add a small, random adjustment to the retry delay to avoid synchronicity in clients retrying.
Exceptions
Throw if the value of maxWait
is negative.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET