RetryPolicy.Default Property

Definition

Gets an instance of the RetryExponential retry policy, which provides a default setup of exponentially increasing retry intervals for messaging operations. Each time this property is accessed, a new instance is created.

public static Microsoft.ServiceBus.RetryPolicy Default { get; }
static member Default : Microsoft.ServiceBus.RetryPolicy
Public Shared ReadOnly Property Default As RetryPolicy

Property Value

The default policy associated with the policy.

Remarks

This property is effectively creating the following instance.

var policy = new RetryExponential(
                     TimeSpan.Zero,
                     TimeSpan.FromSeconds(30),
                     10);                 

It is important to note that the retry policy should always honor the so that retry will terminate if the next retry interval will exceed the operation time.

Applies to