RetryManager.GetRetryPolicy Method ()
Returns a retry policy with the specified error detection strategy and the default retry strategy defined in the configuration.
Namespace: Microsoft.WindowsAzure.Common.TransientFaultHandling
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)
Usage
'Usage
Dim instance As RetryManager
Dim returnValue As RetryPolicy(Of T)
returnValue = instance.GetRetryPolicy
Syntax
'Declaration
Public Overridable Function GetRetryPolicy(Of T As ITransientErrorDetectionStrategy) As RetryPolicy(Of T)
public virtual RetryPolicy<T> GetRetryPolicy<T> () where T : ITransientErrorDetectionStrategy
public:
generic<typename T> where T : ITransientErrorDetectionStrategy
virtual RetryPolicy<T>^ GetRetryPolicy ()
GenericParameters
- T
The type that implements the ITransientErrorDetectionStrategy interface that is responsible for detecting transient conditions.
Return Value
A new retry policy with the specified error detection strategy and the default retry strategy defined in the configuration.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012
Target Platforms
See Also
Reference
RetryManager Class
RetryManager Members
Microsoft.WindowsAzure.Common.TransientFaultHandling Namespace