Compartir a través de


ExecutionStrategy Constructores

Definición

Sobrecargas

ExecutionStrategy(DbContext, Int32, TimeSpan)

Crea una nueva instancia de ExecutionStrategy.

ExecutionStrategy(ExecutionStrategyContext, Int32, TimeSpan)

Crea una nueva instancia de ExecutionStrategy.

ExecutionStrategy(ExecutionStrategyDependencies, Int32, TimeSpan)

Crea una nueva instancia de ExecutionStrategy.

ExecutionStrategy(DbContext, Int32, TimeSpan)

Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs

Crea una nueva instancia de 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)

Parámetros

context
DbContext

Contexto en el que se invocarán las operaciones.

maxRetryCount
Int32

Número máximo de reintentos.

maxRetryDelay
TimeSpan

El retraso máximo entre los reintentos.

Comentarios

Consulte Resistencia de conexión y reintentos de base de datos para obtener más información y ejemplos.

Se aplica a

ExecutionStrategy(ExecutionStrategyContext, Int32, TimeSpan)

Crea una nueva instancia de 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)

Parámetros

context
ExecutionStrategyContext

Dependencias necesarias.

maxRetryCount
Int32

Número máximo de reintentos.

maxRetryDelay
TimeSpan

Retraso máximo en milisegundos entre reintentos.

Se aplica a

ExecutionStrategy(ExecutionStrategyDependencies, Int32, TimeSpan)

Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs
Source:
ExecutionStrategy.cs

Crea una nueva instancia de 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)

Parámetros

dependencies
ExecutionStrategyDependencies

Objeto de parámetro que contiene dependencias de servicio.

maxRetryCount
Int32

Número máximo de reintentos.

maxRetryDelay
TimeSpan

El retraso máximo entre los reintentos.

Comentarios

Consulte Resistencia de conexión y reintentos de base de datos para obtener más información y ejemplos.

Se aplica a