Condividi tramite


ExecutionStrategy Costruttori

Definizione

Overload

ExecutionStrategy(DbContext, Int32, TimeSpan)

Crea una nuova istanza di ExecutionStrategy.

ExecutionStrategy(ExecutionStrategyContext, Int32, TimeSpan)

Crea una nuova istanza di ExecutionStrategy.

ExecutionStrategy(ExecutionStrategyDependencies, Int32, TimeSpan)

Crea una nuova istanza di ExecutionStrategy.

ExecutionStrategy(DbContext, Int32, TimeSpan)

Crea una nuova istanza di 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)

Parametri

context
DbContext

Contesto in cui verranno richiamate le operazioni.

maxRetryCount
Int32

Il massimi numero di tentativi.

maxRetryDelay
TimeSpan

Ritardo massimo tra i tentativi.

Commenti

Per altre informazioni ed esempi, vedere Resilienza della connessione e tentativi di database .

Si applica a

ExecutionStrategy(ExecutionStrategyContext, Int32, TimeSpan)

Crea una nuova istanza di 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)

Parametri

context
ExecutionStrategyContext

Dipendenze necessarie.

maxRetryCount
Int32

Il massimi numero di tentativi.

maxRetryDelay
TimeSpan

Ritardo massimo in millisecondi tra tentativi.

Si applica a

ExecutionStrategy(ExecutionStrategyDependencies, Int32, TimeSpan)

Crea una nuova istanza di 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)

Parametri

dependencies
ExecutionStrategyDependencies

Oggetto Parameter contenente dipendenze del servizio.

maxRetryCount
Int32

Il massimi numero di tentativi.

maxRetryDelay
TimeSpan

Ritardo massimo tra i tentativi.

Commenti

Per altre informazioni ed esempi, vedere Resilienza della connessione e tentativi di database .

Si applica a