Share via


DbExecutionStrategy Constructors

Definition

Overloads

DbExecutionStrategy()

Creates a new instance of DbExecutionStrategy.

DbExecutionStrategy(Int32, TimeSpan)

Creates a new instance of DbExecutionStrategy with the specified limits for number of retries and the delay between retries.

DbExecutionStrategy()

Creates a new instance of DbExecutionStrategy.

protected DbExecutionStrategy ();
Protected Sub New ()

Remarks

The default retry limit is 5, which means that the total amount of time spent between retries is 26 seconds plus the random factor.

Applies to

DbExecutionStrategy(Int32, TimeSpan)

Creates a new instance of DbExecutionStrategy with the specified limits for number of retries and the delay between retries.

protected DbExecutionStrategy (int maxRetryCount, TimeSpan maxDelay);
new System.Data.Entity.Infrastructure.DbExecutionStrategy : int * TimeSpan -> System.Data.Entity.Infrastructure.DbExecutionStrategy
Protected Sub New (maxRetryCount As Integer, maxDelay As TimeSpan)

Parameters

maxRetryCount
Int32

The maximum number of retry attempts.

maxDelay
TimeSpan

The maximum delay in milliseconds between retries.

Applies to