SqlServerRetryingExecutionStrategy Konstruktory
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
SqlServerRetryingExecutionStrategy(DbContext)
Vytvoří novou instanci .SqlServerRetryingExecutionStrategy
public SqlServerRetryingExecutionStrategy(Microsoft.EntityFrameworkCore.DbContext context);
new Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy : Microsoft.EntityFrameworkCore.DbContext -> Microsoft.EntityFrameworkCore.SqlServerRetryingExecutionStrategy
Public Sub New (context As DbContext)
Parametry
- context
- DbContext
Kontext, na kterém budou operace vyvolány.
Poznámky
Použijí se výchozí hodnoty 6 pro maximální počet opakování a 30 sekund pro maximální výchozí zpoždění.
Platí pro
SqlServerRetryingExecutionStrategy(ExecutionStrategyContext)
Vytvoří novou instanci .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)
Parametry
- context
- ExecutionStrategyContext
Požadované závislosti.
Platí pro
SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies)
Vytvoří novou instanci .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)
Parametry
- dependencies
- ExecutionStrategyDependencies
Objekt parametru obsahující závislosti služby
Poznámky
Použijí se výchozí hodnoty 6 pro maximální počet opakování a 30 sekund pro maximální výchozí zpoždění.
Platí pro
SqlServerRetryingExecutionStrategy(DbContext, Int32)
Vytvoří novou instanci .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)
Parametry
- context
- DbContext
Kontext, na kterém budou operace vyvolány.
- maxRetryCount
- Int32
Maximální počet opakovaných pokusů.
Poznámky
Použije se výchozí hodnota 30 sekund pro maximální výchozí zpoždění.
Platí pro
SqlServerRetryingExecutionStrategy(ExecutionStrategyContext, Int32)
Vytvoří novou instanci .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)
Parametry
- context
- ExecutionStrategyContext
Požadované závislosti.
- maxRetryCount
- Int32
Maximální počet opakovaných pokusů.
Platí pro
SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, IEnumerable<Int32>)
Vytvoří novou instanci .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))
Parametry
- dependencies
- ExecutionStrategyDependencies
Objekt parametru obsahující závislosti služby
- errorNumbersToAdd
- IEnumerable<Int32>
Další chybová čísla SQL, která by se měla považovat za přechodná.
Poznámky
Použijí se výchozí hodnoty 6 pro maximální počet opakování a 30 sekund pro maximální výchozí zpoždění.
Platí pro
SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, Int32)
Vytvoří novou instanci .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)
Parametry
- dependencies
- ExecutionStrategyDependencies
Objekt parametru obsahující závislosti služby
- maxRetryCount
- Int32
Maximální počet opakovaných pokusů.
Poznámky
Použije se výchozí hodnota 30 sekund pro maximální výchozí zpoždění.
Platí pro
SqlServerRetryingExecutionStrategy(DbContext, Int32, TimeSpan, ICollection<Int32>)
Vytvoří novou instanci .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))
Parametry
- context
- DbContext
Kontext, na kterém budou operace vyvolány.
- maxRetryCount
- Int32
Maximální počet opakovaných pokusů.
- maxRetryDelay
- TimeSpan
Maximální prodleva mezi opakovanými pokusy.
- errorNumbersToAdd
- ICollection<Int32>
Další chybová čísla SQL, která by se měla považovat za přechodná.
Platí pro
SqlServerRetryingExecutionStrategy(DbContext, Int32, TimeSpan, IEnumerable<Int32>)
Vytvoří novou instanci .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))
Parametry
- context
- DbContext
Kontext, na kterém budou operace vyvolány.
- maxRetryCount
- Int32
Maximální počet opakovaných pokusů.
- maxRetryDelay
- TimeSpan
Maximální prodleva mezi opakovanými pokusy.
- errorNumbersToAdd
- IEnumerable<Int32>
Další chybová čísla SQL, která by se měla považovat za přechodná.
Platí pro
SqlServerRetryingExecutionStrategy(ExecutionStrategyContext, Int32, TimeSpan, ICollection<Int32>)
Vytvoří novou instanci .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))
Parametry
- context
- ExecutionStrategyContext
Požadované závislosti.
- maxRetryCount
- Int32
Maximální počet opakovaných pokusů.
- maxRetryDelay
- TimeSpan
Maximální zpoždění v milisekundách mezi opakovanými pokusy.
- errorNumbersToAdd
- ICollection<Int32>
Další chybová čísla SQL, která by se měla považovat za přechodná.
Platí pro
SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, Int32, TimeSpan, ICollection<Int32>)
Vytvoří novou instanci .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))
Parametry
- dependencies
- ExecutionStrategyDependencies
Objekt parametru obsahující závislosti služby
- maxRetryCount
- Int32
Maximální počet opakovaných pokusů.
- maxRetryDelay
- TimeSpan
Maximální prodleva mezi opakovanými pokusy.
- errorNumbersToAdd
- ICollection<Int32>
Další chybová čísla SQL, která by se měla považovat za přechodná.
Platí pro
SqlServerRetryingExecutionStrategy(ExecutionStrategyDependencies, Int32, TimeSpan, IEnumerable<Int32>)
Vytvoří novou instanci .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))
Parametry
- dependencies
- ExecutionStrategyDependencies
Objekt parametru obsahující závislosti služby
- maxRetryCount
- Int32
Maximální počet opakovaných pokusů.
- maxRetryDelay
- TimeSpan
Maximální prodleva mezi opakovanými pokusy.
- errorNumbersToAdd
- IEnumerable<Int32>
Další chybová čísla SQL, která by se měla považovat za přechodná.