SqlServerRetryingExecutionStrategy Costruttori
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
SqlServerRetryingExecutionStrategy(DbContext)
Crea una nuova istanza di SqlServerRetryingExecutionStrategy.
public SqlServerRetryingExecutionStrategy (Microsoft.EntityFrameworkCore.DbContext context);
new Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy : Microsoft.EntityFrameworkCore.DbContext -> Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy
Public Sub New (context As DbContext)
Parametri
- context
- DbContext
Contesto in cui verranno richiamate le operazioni.
Commenti
Vengono usati i valori predefiniti 6 per il numero massimo di tentativi e 30 secondi per il ritardo predefinito massimo.
Si applica a
SqlServerRetryingExecutionStrategy(ExecutionStrategyContext)
Crea una nuova istanza di 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)
Parametri
- context
- ExecutionStrategyContext
Dipendenze necessarie.
Si applica a
SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies)
Crea una nuova istanza di 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)
Parametri
- dependencies
- ExecutionStrategyDependencies
Oggetto parametro contenente le dipendenze del servizio.
Commenti
Vengono usati i valori predefiniti 6 per il numero massimo di tentativi e 30 secondi per il ritardo predefinito massimo.
Si applica a
SqlServerRetryingExecutionStrategy(DbContext, Int32)
Crea una nuova istanza di 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)
Parametri
- context
- DbContext
Contesto in cui verranno richiamate le operazioni.
- maxRetryCount
- Int32
Il massimi numero di tentativi.
Commenti
Viene usato un valore predefinito di 30 secondi per il ritardo predefinito massimo.
Si applica a
SqlServerRetryingExecutionStrategy(ExecutionStrategyContext, Int32)
Crea una nuova istanza di 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)
Parametri
- context
- ExecutionStrategyContext
Dipendenze necessarie.
- maxRetryCount
- Int32
Il massimi numero di tentativi.
Si applica a
SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, IEnumerable<Int32>)
Crea una nuova istanza di 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))
Parametri
- dependencies
- ExecutionStrategyDependencies
Oggetto parametro contenente le dipendenze del servizio.
- errorNumbersToAdd
- IEnumerable<Int32>
Numeri di errore SQL aggiuntivi che devono essere considerati temporanei.
Commenti
Vengono usati i valori predefiniti 6 per il numero massimo di tentativi e 30 secondi per il ritardo predefinito massimo.
Si applica a
SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, Int32)
Crea una nuova istanza di 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)
Parametri
- dependencies
- ExecutionStrategyDependencies
Oggetto parametro contenente le dipendenze del servizio.
- maxRetryCount
- Int32
Il massimi numero di tentativi.
Commenti
Viene usato un valore predefinito di 30 secondi per il ritardo predefinito massimo.
Si applica a
SqlServerRetryingExecutionStrategy(DbContext, Int32, TimeSpan, ICollection<Int32>)
Crea una nuova istanza di 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))
Parametri
- context
- DbContext
Contesto in cui verranno richiamate le operazioni.
- maxRetryCount
- Int32
Il massimi numero di tentativi.
- maxRetryDelay
- TimeSpan
Ritardo massimo tra i tentativi.
- errorNumbersToAdd
- ICollection<Int32>
Numeri di errore SQL aggiuntivi che devono essere considerati temporanei.
Si applica a
SqlServerRetryingExecutionStrategy(DbContext, Int32, TimeSpan, IEnumerable<Int32>)
Crea una nuova istanza di 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))
Parametri
- context
- DbContext
Contesto in cui verranno richiamate le operazioni.
- maxRetryCount
- Int32
Il massimi numero di tentativi.
- maxRetryDelay
- TimeSpan
Ritardo massimo tra i tentativi.
- errorNumbersToAdd
- IEnumerable<Int32>
Numeri di errore SQL aggiuntivi che devono essere considerati temporanei.
Si applica a
SqlServerRetryingExecutionStrategy(ExecutionStrategyContext, Int32, TimeSpan, ICollection<Int32>)
Crea una nuova istanza di 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))
Parametri
- context
- ExecutionStrategyContext
Dipendenze necessarie.
- maxRetryCount
- Int32
Il massimi numero di tentativi.
- maxRetryDelay
- TimeSpan
Ritardo massimo in millisecondi tra i tentativi.
- errorNumbersToAdd
- ICollection<Int32>
Numeri di errore SQL aggiuntivi che devono essere considerati temporanei.
Si applica a
SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, Int32, TimeSpan, ICollection<Int32>)
Crea una nuova istanza di 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))
Parametri
- dependencies
- ExecutionStrategyDependencies
Oggetto parametro contenente le dipendenze del servizio.
- maxRetryCount
- Int32
Il massimi numero di tentativi.
- maxRetryDelay
- TimeSpan
Ritardo massimo tra i tentativi.
- errorNumbersToAdd
- ICollection<Int32>
Numeri di errore SQL aggiuntivi che devono essere considerati temporanei.
Si applica a
SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, Int32, TimeSpan, IEnumerable<Int32>)
Crea una nuova istanza di 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))
Parametri
- dependencies
- ExecutionStrategyDependencies
Oggetto parametro contenente le dipendenze del servizio.
- maxRetryCount
- Int32
Il massimi numero di tentativi.
- maxRetryDelay
- TimeSpan
Ritardo massimo tra i tentativi.
- errorNumbersToAdd
- IEnumerable<Int32>
Numeri di errore SQL aggiuntivi che devono essere considerati temporanei.