ExecutionStrategyTests.TestExecutionStrategy ExecutionStrategyTests.TestExecutionStrategy Class

Syntax

Declaration

public class TestExecutionStrategy : ExecutionStrategy, IExecutionStrategyPublic Class TestExecutionStrategy
    Inherits ExecutionStrategy
    Implements IExecutionStrategy

Inheritance Hierarchy

Inherited Members

DefaultMaxRetryCount,
DefaultMaxRetryCount,
DefaultMaxDelay,
DefaultMaxDelay,
ExceptionsEncountered,
ExceptionsEncountered,
Random,
Random,
MaxRetryCount,
MaxRetryCount,
MaxRetryDelay,
MaxRetryDelay,
Context,
Context,
Logger,
Logger,
RetriesOnFailure,
RetriesOnFailure,
Execute<TState, TResult>(Func<TState, TResult>, TState),
Execute(Of TState, TResult)(Func(Of TState, TResult), TState),
ExecuteAsync<TState, TResult>(Func<TState, CancellationToken, Task<TResult>>, TState, CancellationToken),
ExecuteAsync(Of TState, TResult)(Func(Of TState, CancellationToken, Task(Of TResult)), TState, CancellationToken),
OnFirstExecution(),
OnFirstExecution(),
OnRetry(),
OnRetry(),
GetNextDelay(Exception),
GetNextDelay(Exception),
UnwrapAndHandleException<T>(Exception, Func<Exception, T>),
UnwrapAndHandleException(Of T)(Exception, Func(Of Exception, T)),
ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Properties summary

Methods summary

Constructors

  • TestExecutionStrategy()
    TestExecutionStrategy()
    public TestExecutionStrategy()Public Sub New
  • TestExecutionStrategy(DbContext)
    TestExecutionStrategy(DbContext)
    public TestExecutionStrategy(DbContext context)Public Sub New(context As DbContext)

    Parameters

Properties

  • Suspended
    Suspended
    public static bool Suspended { get; set; }Public Shared Property Suspended As Boolean

    Property Value

    • System.Boolean
      System.Boolean

Methods

  • ShouldRetryOn(Exception)
    ShouldRetryOn(Exception)
    protected override bool ShouldRetryOn(Exception exception)Protected Overrides Function ShouldRetryOn(exception As Exception) As Boolean

    Parameters

    • exception
      System.Exception
      System.Exception

    Returns

    • System.Boolean
      System.Boolean

Details

Assembly

Microsoft.EntityFrameworkCore.Tests.dll