示例#1
0
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 protected virtual IExecutionStrategy CreateDefaultStrategy([NotNull] ExecutionStrategyContext context) => NoopExecutionStrategy.Instance;
示例#2
0
 protected override IExecutionStrategy CreateDefaultStrategy(ExecutionStrategyContext context) => NoopExecutionStrategy.Instance;
 /// <summary>
 ///     Creates a new instance of <see cref="SqlServerRetryingExecutionStrategy" />.
 /// </summary>
 /// <param name="context"> The required dependencies. </param>
 /// <param name="maxRetryCount"> The maximum number of retry attempts. </param>
 public SqlServerRetryingExecutionStrategy(
     [NotNull] ExecutionStrategyContext context,
     int maxRetryCount)
     : this(context, maxRetryCount, DefaultMaxDelay, errorNumbersToAdd : null)
 {
 }
 /// <summary>
 ///     Creates a new instance of <see cref="SqlServerRetryingExecutionStrategy" />.
 /// </summary>
 /// <param name="context"> The required dependencies. </param>
 public SqlServerRetryingExecutionStrategy(
     [NotNull] ExecutionStrategyContext context)
     : this(context, DefaultMaxRetryCount)
 {
 }
 public MyConnectionStrategy(ExecutionStrategyContext context) :
     base(context, ExecutionStrategy.DefaultMaxRetryCount,
          ExecutionStrategy.DefaultMaxDelay)
 {
 }
 public MyConnectionStrategy(
     ExecutionStrategyContext context,
     int maxRetryCount,
     TimeSpan maxRetryDelay) : base(context, maxRetryCount, maxRetryDelay)
 {
 }
 public TestSqlServerRetryingExecutionStrategy(ExecutionStrategyContext context)
     : base(context, DefaultMaxRetryCount, DefaultMaxDelay, _additionalErrorNumbers)
 {
 }