Share via


RetryPolicyFactory.GetRetryPolicy<T> Method

Returns a retry policy with the specified error detection strategy and the default retry strategy defined in the configuration.

Namespace: Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling
Assembly: Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.Configuration (in Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.Configuration.dll) Version: 6.0.0.0 (6.0.1304.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

Return Value

Type: RetryPolicy
The retry policy that is initialized with the default retry strategy.

See Also

RetryPolicyFactory Class

RetryPolicyFactory Members

GetRetryPolicy Overload

Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling Namespace