RetryManager.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 (in Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.dll) Version: 6.0.0.0 (6.0.1304.0)
Syntax
public virtual RetryPolicy<T> GetRetryPolicy<T>()
where T : new(), ITransientErrorDetectionStrategy
'Declaration
Public Overridable Function GetRetryPolicy(Of T As {New, ITransientErrorDetectionStrategy}) As RetryPolicy(Of T)
public:
generic<typename T>
where T : gcnew(), ITransientErrorDetectionStrategy
virtual RetryPolicy<T>^ GetRetryPolicy()
Type Parameters
- T
The type that implements the ITransientErrorDetectionStrategy interface that is responsible for detecting transient conditions.
Return Value
Type: RetryPolicy<T>
A new retry policy with the specified error detection strategy and the default retry strategy defined in the configuration.
See Also
Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling Namespace