ExponentialBackoff Constructor (Int32, TimeSpan, TimeSpan, TimeSpan)
Retired Content |
---|
This content and the technology described is outdated and is no longer being maintained. For more information, see Transient Fault Handling. |
Initializes a new instance of the ExponentialBackoff class.
Namespace: Microsoft.Practices.TransientFaultHandling
Assembly: Microsoft.Practices.TransientFaultHandling.Core (in Microsoft.Practices.TransientFaultHandling.Core.dll) Version: 5.0.1118.0 (5.0.1118.0)
Syntax
public ExponentialBackoff(
int retryCount,
TimeSpan minBackoff,
TimeSpan maxBackoff,
TimeSpan deltaBackoff
)
'Declaration
Public Sub New ( _
retryCount As Integer, _
minBackoff As TimeSpan, _
maxBackoff As TimeSpan, _
deltaBackoff As TimeSpan _
)
public:
ExponentialBackoff(
int retryCount,
TimeSpan minBackoff,
TimeSpan maxBackoff,
TimeSpan deltaBackoff
)
Parameters
- retryCount
Type: System.Int32
The maximum number of retry attempts.
- minBackoff
Type: System.TimeSpan
The minimum back-off time
- maxBackoff
Type: System.TimeSpan
The maximum back-off time.
- deltaBackoff
Type: System.TimeSpan
The value that will be used for calculating a random delta in the exponential delay between retries.
See Also
ExponentialBackoff Overload