RetryManager.GetRetryPolicy<T> Method (String)

 

Returns a retry policy with the specified error detection strategy and retry strategy.

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

Syntax

public virtual RetryPolicy<T> GetRetryPolicy<T>(
    string retryStrategyName
)
where T : new(), ITransientErrorDetectionStrategy
public:
generic<typename T>
where T : gcnew(), ITransientErrorDetectionStrategy
virtual RetryPolicy<T>^ GetRetryPolicy(
    String^ retryStrategyName
)
abstract GetRetryPolicy<'T when 'T : new() and ITransientErrorDetectionStrategy> : 
        retryStrategyName:string -> RetryPolicy<'T>
override GetRetryPolicy<'T when 'T : new() and ITransientErrorDetectionStrategy> : 
        retryStrategyName:string -> RetryPolicy<'T>
Public Overridable Function GetRetryPolicy(Of T As { ITransientErrorDetectionStrategy, New }) (
    retryStrategyName As String
) As RetryPolicy(Of T)

Parameters

  • retryStrategyName
    Type: System.String

    The retry strategy name, as defined in the configuration.

Return Value

Type: Microsoft.WindowsAzure.Common.TransientFaultHandling.RetryPolicy<T>

A new retry policy with the specified error detection strategy and the default retry strategy defined in the configuration.

Type Parameters

See Also

GetRetryPolicy Overload
RetryManager Class
Microsoft.WindowsAzure.Common.TransientFaultHandling Namespace

Return to top