RetryPolicy Constructor (Int32, TimeSpan, TimeSpan, TimeSpan)
Initializes a new instance of the RetryPolicy class with the specified number of retry attempts and backoff parameters for calculating the exponential delay between retries.
Namespace: Microsoft.WindowsAzure.Common.TransientFaultHandling
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)
Usage
'Usage
Dim retryCount As Integer
Dim minBackoff As TimeSpan
Dim maxBackoff As TimeSpan
Dim deltaBackoff As TimeSpan
Dim instance As New RetryPolicy(Of T)(retryCount, minBackoff, maxBackoff, deltaBackoff)
Syntax
'Declaration
Public Sub New ( _
retryCount As Integer, _
minBackoff As TimeSpan, _
maxBackoff As TimeSpan, _
deltaBackoff As TimeSpan _
)
public RetryPolicy (
int retryCount,
TimeSpan minBackoff,
TimeSpan maxBackoff,
TimeSpan deltaBackoff
)
public:
RetryPolicy (
int retryCount,
TimeSpan minBackoff,
TimeSpan maxBackoff,
TimeSpan deltaBackoff
)
public RetryPolicy (
int retryCount,
TimeSpan minBackoff,
TimeSpan maxBackoff,
TimeSpan deltaBackoff
)
public function RetryPolicy (
retryCount : int,
minBackoff : TimeSpan,
maxBackoff : TimeSpan,
deltaBackoff : TimeSpan
)
Parameters
- retryCount
The number of retry attempts.
- minBackoff
The minimum backoff time.
- maxBackoff
The maximum backoff time.
- deltaBackoff
The time value that will be used to calculate a random delta in the exponential delay between retries.
Remarks
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
RetryPolicy Class
RetryPolicy Members
Microsoft.WindowsAzure.Common.TransientFaultHandling Namespace