Share via


SqlServerRetryingExecutionStrategy Constructors

Definition

Overloads

SqlServerRetryingExecutionStrategy(DbContext)

Creates a new instance of SqlServerRetryingExecutionStrategy.

SqlServerRetryingExecutionStrategy(ExecutionStrategyContext)

Creates a new instance of SqlServerRetryingExecutionStrategy.

SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies)

Creates a new instance of SqlServerRetryingExecutionStrategy.

SqlServerRetryingExecutionStrategy(DbContext, Int32)

Creates a new instance of SqlServerRetryingExecutionStrategy.

SqlServerRetryingExecutionStrategy(ExecutionStrategyContext, Int32)

Creates a new instance of SqlServerRetryingExecutionStrategy.

SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, IEnumerable<Int32>)

Creates a new instance of SqlServerRetryingExecutionStrategy.

SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, Int32)

Creates a new instance of SqlServerRetryingExecutionStrategy.

SqlServerRetryingExecutionStrategy(DbContext, Int32, TimeSpan, ICollection<Int32>)

Creates a new instance of SqlServerRetryingExecutionStrategy.

SqlServerRetryingExecutionStrategy(DbContext, Int32, TimeSpan, IEnumerable<Int32>)

Creates a new instance of SqlServerRetryingExecutionStrategy.

SqlServerRetryingExecutionStrategy(ExecutionStrategyContext, Int32, TimeSpan, ICollection<Int32>)

Creates a new instance of SqlServerRetryingExecutionStrategy.

SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, Int32, TimeSpan, ICollection<Int32>)

Creates a new instance of SqlServerRetryingExecutionStrategy.

SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, Int32, TimeSpan, IEnumerable<Int32>)

Creates a new instance of SqlServerRetryingExecutionStrategy.

SqlServerRetryingExecutionStrategy(DbContext)

Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs

Creates a new instance of SqlServerRetryingExecutionStrategy.

public SqlServerRetryingExecutionStrategy (Microsoft.EntityFrameworkCore.DbContext context);
new Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy : Microsoft.EntityFrameworkCore.DbContext -> Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy
Public Sub New (context As DbContext)

Parameters

context
DbContext

The context on which the operations will be invoked.

Remarks

Default values of 6 for the maximum retry count and 30 seconds for the maximum default delay are used.

Applies to

SqlServerRetryingExecutionStrategy(ExecutionStrategyContext)

Creates a new instance of SqlServerRetryingExecutionStrategy.

public SqlServerRetryingExecutionStrategy (Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyContext context);
new Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy : Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyContext -> Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy
Public Sub New (context As ExecutionStrategyContext)

Parameters

context
ExecutionStrategyContext

The required dependencies.

Applies to

SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies)

Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs

Creates a new instance of SqlServerRetryingExecutionStrategy.

public SqlServerRetryingExecutionStrategy (Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies dependencies);
new Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy : Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies -> Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy
Public Sub New (dependencies As ExecutionStrategyDependencies)

Parameters

dependencies
ExecutionStrategyDependencies

Parameter object containing service dependencies.

Remarks

Default values of 6 for the maximum retry count and 30 seconds for the maximum default delay are used.

Applies to

SqlServerRetryingExecutionStrategy(DbContext, Int32)

Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs

Creates a new instance of SqlServerRetryingExecutionStrategy.

public SqlServerRetryingExecutionStrategy (Microsoft.EntityFrameworkCore.DbContext context, int maxRetryCount);
new Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy : Microsoft.EntityFrameworkCore.DbContext * int -> Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy
Public Sub New (context As DbContext, maxRetryCount As Integer)

Parameters

context
DbContext

The context on which the operations will be invoked.

maxRetryCount
Int32

The maximum number of retry attempts.

Remarks

A default value 30 seconds for the maximum default delay is used.

Applies to

SqlServerRetryingExecutionStrategy(ExecutionStrategyContext, Int32)

Creates a new instance of SqlServerRetryingExecutionStrategy.

public SqlServerRetryingExecutionStrategy (Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyContext context, int maxRetryCount);
new Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy : Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyContext * int -> Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy
Public Sub New (context As ExecutionStrategyContext, maxRetryCount As Integer)

Parameters

context
ExecutionStrategyContext

The required dependencies.

maxRetryCount
Int32

The maximum number of retry attempts.

Applies to

SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, IEnumerable<Int32>)

Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs

Creates a new instance of SqlServerRetryingExecutionStrategy.

public SqlServerRetryingExecutionStrategy (Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies dependencies, System.Collections.Generic.IEnumerable<int> errorNumbersToAdd);
new Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy : Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies * seq<int> -> Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy
Public Sub New (dependencies As ExecutionStrategyDependencies, errorNumbersToAdd As IEnumerable(Of Integer))

Parameters

dependencies
ExecutionStrategyDependencies

Parameter object containing service dependencies.

errorNumbersToAdd
IEnumerable<Int32>

Additional SQL error numbers that should be considered transient.

Remarks

Default values of 6 for the maximum retry count and 30 seconds for the maximum default delay are used.

Applies to

SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, Int32)

Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs

Creates a new instance of SqlServerRetryingExecutionStrategy.

public SqlServerRetryingExecutionStrategy (Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies dependencies, int maxRetryCount);
new Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy : Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies * int -> Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy
Public Sub New (dependencies As ExecutionStrategyDependencies, maxRetryCount As Integer)

Parameters

dependencies
ExecutionStrategyDependencies

Parameter object containing service dependencies.

maxRetryCount
Int32

The maximum number of retry attempts.

Remarks

A default value 30 seconds for the maximum default delay is used.

Applies to

SqlServerRetryingExecutionStrategy(DbContext, Int32, TimeSpan, ICollection<Int32>)

Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs

Creates a new instance of SqlServerRetryingExecutionStrategy.

public SqlServerRetryingExecutionStrategy (Microsoft.EntityFrameworkCore.DbContext context, int maxRetryCount, TimeSpan maxRetryDelay, System.Collections.Generic.ICollection<int> errorNumbersToAdd);
public SqlServerRetryingExecutionStrategy (Microsoft.EntityFrameworkCore.DbContext context, int maxRetryCount, TimeSpan maxRetryDelay, System.Collections.Generic.ICollection<int>? errorNumbersToAdd);
new Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy : Microsoft.EntityFrameworkCore.DbContext * int * TimeSpan * System.Collections.Generic.ICollection<int> -> Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy
Public Sub New (context As DbContext, maxRetryCount As Integer, maxRetryDelay As TimeSpan, errorNumbersToAdd As ICollection(Of Integer))

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.

errorNumbersToAdd
ICollection<Int32>

Additional SQL error numbers that should be considered transient.

Applies to

SqlServerRetryingExecutionStrategy(DbContext, Int32, TimeSpan, IEnumerable<Int32>)

Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs

Creates a new instance of SqlServerRetryingExecutionStrategy.

public SqlServerRetryingExecutionStrategy (Microsoft.EntityFrameworkCore.DbContext context, int maxRetryCount, TimeSpan maxRetryDelay, System.Collections.Generic.IEnumerable<int>? errorNumbersToAdd);
new Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy : Microsoft.EntityFrameworkCore.DbContext * int * TimeSpan * seq<int> -> Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy
Public Sub New (context As DbContext, maxRetryCount As Integer, maxRetryDelay As TimeSpan, errorNumbersToAdd As IEnumerable(Of Integer))

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.

errorNumbersToAdd
IEnumerable<Int32>

Additional SQL error numbers that should be considered transient.

Applies to

SqlServerRetryingExecutionStrategy(ExecutionStrategyContext, Int32, TimeSpan, ICollection<Int32>)

Creates a new instance of SqlServerRetryingExecutionStrategy.

public SqlServerRetryingExecutionStrategy (Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyContext context, int maxRetryCount, TimeSpan maxRetryDelay, System.Collections.Generic.ICollection<int> errorNumbersToAdd);
new Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy : Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyContext * int * TimeSpan * System.Collections.Generic.ICollection<int> -> Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy
Public Sub New (context As ExecutionStrategyContext, maxRetryCount As Integer, maxRetryDelay As TimeSpan, errorNumbersToAdd As ICollection(Of Integer))

Parameters

context
ExecutionStrategyContext

The required dependencies.

maxRetryCount
Int32

The maximum number of retry attempts.

maxRetryDelay
TimeSpan

The maximum delay in milliseconds between retries.

errorNumbersToAdd
ICollection<Int32>

Additional SQL error numbers that should be considered transient.

Applies to

SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, Int32, TimeSpan, ICollection<Int32>)

Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs

Creates a new instance of SqlServerRetryingExecutionStrategy.

public SqlServerRetryingExecutionStrategy (Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies dependencies, int maxRetryCount, TimeSpan maxRetryDelay, System.Collections.Generic.ICollection<int> errorNumbersToAdd);
public SqlServerRetryingExecutionStrategy (Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies dependencies, int maxRetryCount, TimeSpan maxRetryDelay, System.Collections.Generic.ICollection<int>? errorNumbersToAdd);
new Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy : Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies * int * TimeSpan * System.Collections.Generic.ICollection<int> -> Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy
Public Sub New (dependencies As ExecutionStrategyDependencies, maxRetryCount As Integer, maxRetryDelay As TimeSpan, errorNumbersToAdd As ICollection(Of Integer))

Parameters

dependencies
ExecutionStrategyDependencies

Parameter object containing service dependencies.

maxRetryCount
Int32

The maximum number of retry attempts.

maxRetryDelay
TimeSpan

The maximum delay between retries.

errorNumbersToAdd
ICollection<Int32>

Additional SQL error numbers that should be considered transient.

Applies to

SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, Int32, TimeSpan, IEnumerable<Int32>)

Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs
Source:
SqlServerRetryingExecutionStrategy.cs

Creates a new instance of SqlServerRetryingExecutionStrategy.

public SqlServerRetryingExecutionStrategy (Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies dependencies, int maxRetryCount, TimeSpan maxRetryDelay, System.Collections.Generic.IEnumerable<int>? errorNumbersToAdd);
new Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy : Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies * int * TimeSpan * seq<int> -> Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy
Public Sub New (dependencies As ExecutionStrategyDependencies, maxRetryCount As Integer, maxRetryDelay As TimeSpan, errorNumbersToAdd As IEnumerable(Of Integer))

Parameters

dependencies
ExecutionStrategyDependencies

Parameter object containing service dependencies.

maxRetryCount
Int32

The maximum number of retry attempts.

maxRetryDelay
TimeSpan

The maximum delay between retries.

errorNumbersToAdd
IEnumerable<Int32>

Additional SQL error numbers that should be considered transient.

Applies to