你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ExponentialBackoff Class

Definition

Represents a retry policy that performs a specified number of retries, using a randomized exponential back off scheme to determine the interval between retries.

public class ExponentialBackoff : Microsoft.Azure.Devices.Client.IRetryPolicy
type ExponentialBackoff = class
    interface IRetryPolicy
Public Class ExponentialBackoff
Implements IRetryPolicy
Inheritance
ExponentialBackoff
Implements

Constructors

ExponentialBackoff(Int32, TimeSpan, TimeSpan, TimeSpan)

Creates an instance of ExponentialBackoff.

Methods

ShouldRetry(Int32, Exception, TimeSpan)

Returns true if, based on the parameters, the operation should be retried.

Applies to