Aracılığıyla paylaş


RetryPolicyFactory.GetRetryPolicy<T> Method

Retired Content

This content and the technology described is outdated and is no longer being maintained. For more information about Transient Fault Handling, see Transient Fault Handling.

Return a retry policy with the specified error detection strategy and the default retry strategy defined in the config.

Namespace: Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling
Assembly: Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling (in Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.dll) Version: 5.0.1118.0 (5.0.1118.0)

Syntax

public static RetryPolicy GetRetryPolicy<T>()
where T : new(), ITransientErrorDetectionStrategy
'Declaration
Public Shared Function GetRetryPolicy(Of T As {New, ITransientErrorDetectionStrategy}) As RetryPolicy
public:
generic<typename T>
where T : gcnew(), ITransientErrorDetectionStrategy
static RetryPolicy^ GetRetryPolicy()

Type Parameters

  • T
    The type implementing the ITransientErrorDetectionStrategy interface that is responsible for detecting transient conditions.

Return Value

The retry policy initialized with the default retry strategy.

See Also

RetryPolicyFactory Class

GetRetryPolicy Overload

Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling Namespace