RetryPolicy<T> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RetryPolicy<T>(RetryStrategy) | |
RetryPolicy<T>(Int32) | |
RetryPolicy<T>(Int32, TimeSpan) | |
RetryPolicy<T>(Int32, TimeSpan, TimeSpan) | |
RetryPolicy<T>(Int32, TimeSpan, TimeSpan, TimeSpan) |
RetryPolicy<T>(RetryStrategy)
public RetryPolicy (Microsoft.Rest.TransientFaultHandling.RetryStrategy retryStrategy);
new Microsoft.Rest.TransientFaultHandling.RetryPolicy<'T (requires 'T :> Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy and 'T : (new : unit -> 'T))> : Microsoft.Rest.TransientFaultHandling.RetryStrategy -> Microsoft.Rest.TransientFaultHandling.RetryPolicy<'T (requires 'T :> Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy and 'T : (new : unit -> 'T))>
Public Sub New (retryStrategy As RetryStrategy)
Parameters
- retryStrategy
- RetryStrategy
Applies to
RetryPolicy<T>(Int32)
public RetryPolicy (int retryCount);
new Microsoft.Rest.TransientFaultHandling.RetryPolicy<'T (requires 'T :> Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy and 'T : (new : unit -> 'T))> : int -> Microsoft.Rest.TransientFaultHandling.RetryPolicy<'T (requires 'T :> Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy and 'T : (new : unit -> 'T))>
Public Sub New (retryCount As Integer)
Parameters
- retryCount
- Int32
Applies to
RetryPolicy<T>(Int32, TimeSpan)
public RetryPolicy (int retryCount, TimeSpan retryInterval);
new Microsoft.Rest.TransientFaultHandling.RetryPolicy<'T (requires 'T :> Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy and 'T : (new : unit -> 'T))> : int * TimeSpan -> Microsoft.Rest.TransientFaultHandling.RetryPolicy<'T (requires 'T :> Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy and 'T : (new : unit -> 'T))>
Public Sub New (retryCount As Integer, retryInterval As TimeSpan)
Parameters
- retryCount
- Int32
- retryInterval
- TimeSpan
Applies to
RetryPolicy<T>(Int32, TimeSpan, TimeSpan)
public RetryPolicy (int retryCount, TimeSpan initialInterval, TimeSpan increment);
new Microsoft.Rest.TransientFaultHandling.RetryPolicy<'T (requires 'T :> Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy and 'T : (new : unit -> 'T))> : int * TimeSpan * TimeSpan -> Microsoft.Rest.TransientFaultHandling.RetryPolicy<'T (requires 'T :> Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy and 'T : (new : unit -> 'T))>
Public Sub New (retryCount As Integer, initialInterval As TimeSpan, increment As TimeSpan)
Parameters
- retryCount
- Int32
- initialInterval
- TimeSpan
- increment
- TimeSpan
Applies to
RetryPolicy<T>(Int32, TimeSpan, TimeSpan, TimeSpan)
public RetryPolicy (int retryCount, TimeSpan minBackoff, TimeSpan maxBackoff, TimeSpan deltaBackoff);
new Microsoft.Rest.TransientFaultHandling.RetryPolicy<'T (requires 'T :> Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy and 'T : (new : unit -> 'T))> : int * TimeSpan * TimeSpan * TimeSpan -> Microsoft.Rest.TransientFaultHandling.RetryPolicy<'T (requires 'T :> Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy and 'T : (new : unit -> 'T))>
Public Sub New (retryCount As Integer, minBackoff As TimeSpan, maxBackoff As TimeSpan, deltaBackoff As TimeSpan)
Parameters
- retryCount
- Int32
- minBackoff
- TimeSpan
- maxBackoff
- TimeSpan
- deltaBackoff
- TimeSpan
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET