ExecutionStrategy Constructors

Definition

Overloads

ExecutionStrategy(DbContext, Int32, TimeSpan)

Creates a new instance of ExecutionStrategy.

ExecutionStrategy(ExecutionStrategyContext, Int32, TimeSpan)

Creates a new instance of ExecutionStrategy.

ExecutionStrategy(ExecutionStrategyDependencies, Int32, TimeSpan)

Creates a new instance of ExecutionStrategy.

ExecutionStrategy(DbContext, Int32, TimeSpan)

Creates a new instance of ExecutionStrategy.

protected ExecutionStrategy (Microsoft.EntityFrameworkCore.DbContext context, int maxRetryCount, TimeSpan maxRetryDelay);
new Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy : Microsoft.EntityFrameworkCore.DbContext * int * TimeSpan -> Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy
Protected Sub New (context As DbContext, maxRetryCount As Integer, maxRetryDelay As TimeSpan)

Parameters

context
DbContext

The context on which the operations will be invoked.

maxRetryCount
Int32

The maximum number of retry attempts.

maxRetryDelay
TimeSpan

The maximum delay between retries.

Remarks

See Connection resiliency and database retries for more information and examples.

Applies to

ExecutionStrategy(ExecutionStrategyContext, Int32, TimeSpan)

Creates a new instance of ExecutionStrategy.

protected ExecutionStrategy (Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyContext context, int maxRetryCount, TimeSpan maxRetryDelay);
new Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy : Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyContext * int * TimeSpan -> Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy
Protected Sub New (context As ExecutionStrategyContext, maxRetryCount As Integer, maxRetryDelay As TimeSpan)

Parameters

context
ExecutionStrategyContext

The required dependencies.

maxRetryCount
Int32

The maximum number of retry attempts.

maxRetryDelay
TimeSpan

The maximum delay in milliseconds between retries.

Applies to

ExecutionStrategy(ExecutionStrategyDependencies, Int32, TimeSpan)

Creates a new instance of ExecutionStrategy.

protected ExecutionStrategy (Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies dependencies, int maxRetryCount, TimeSpan maxRetryDelay);
new Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy : Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies * int * TimeSpan -> Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy
Protected Sub New (dependencies As ExecutionStrategyDependencies, maxRetryCount As Integer, maxRetryDelay As TimeSpan)

Parameters

dependencies
ExecutionStrategyDependencies

Parameter object containing service dependencies.

maxRetryCount
Int32

The maximum number of retry attempts.

maxRetryDelay
TimeSpan

The maximum delay between retries.

Remarks

See Connection resiliency and database retries for more information and examples.

Applies to