Share via


RetryManager.SetDefault Method (RetryManager, Boolean)

 

Sets the specified retry manager as the default retry manager.

Namespace:   Microsoft.WindowsAzure.Common.TransientFaultHandling
Assembly:  Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

Syntax

public static void SetDefault(
    RetryManager retryManager,
    bool throwIfSet = true
)
public:
static void SetDefault(
    RetryManager^ retryManager,
    bool throwIfSet = true
)
static member SetDefault : 
        retryManager:RetryManager *
        throwIfSet:bool = true -> unit
Public Shared Sub SetDefault (
    retryManager As RetryManager,
    throwIfSet As Boolean
)

Parameters

  • throwIfSet
    Type: System.Boolean

    true to throw an exception if the manager is already set; otherwise, false. Defaults to true.

Exceptions

Exception Condition
InvalidOperationException

The singleton is already set and throwIfSet is true.

See Also

RetryManager Class
Microsoft.WindowsAzure.Common.TransientFaultHandling Namespace

Return to top