RetryPolicyProvider.LinearRetryProvider(TimeSpan, Int32) Method

Definition

Creates a new RetryPolicyProvider using the LinearRetry policy.

public static Microsoft.Azure.Batch.RetryPolicyProvider LinearRetryProvider (TimeSpan deltaBackoff, int maxRetries);
static member LinearRetryProvider : TimeSpan * int -> Microsoft.Azure.Batch.RetryPolicyProvider
Public Shared Function LinearRetryProvider (deltaBackoff As TimeSpan, maxRetries As Integer) As RetryPolicyProvider

Parameters

deltaBackoff
TimeSpan

The backoff interval between retries.

maxRetries
Int32

The maximum number of retry attempts.

Returns

A provider configured to perform linear retries using the specified backoff and max retries.

Applies to