IExecutionStrategy IExecutionStrategy Interface

Definition

A strategy that is used to execute a command or query against the database, possibly with logic to retry when a failure occurs.

public interface IExecutionStrategy
Public Interface IExecutionStrategy

Properties

RetriesOnFailure RetriesOnFailure

Indicates whether this IExecutionStrategy might retry the execution after a failure.

Methods

Execute<TState, TResult>(Func<TState, TResult>, TState) Execute(Of TState, TResult)(Func(Of TState, TResult), TState)

Executes the specified operation and returns the result.

ExecuteAsync<TState, TResult>(Func<TState, CancellationToken, Task<TResult>>, TState, CancellationToken) ExecuteAsync(Of TState, TResult)(Func(Of TState, CancellationToken, Task(Of TResult)), TState, CancellationToken)

Executes the specified asynchronous operation and returns the result.

Extension Methods

Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute(System.Action) Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute(System.Action)
Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute<TResult>(System.Func<TResult>) Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute(Of TResult)(System.Func(Of TResult))
Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute<TState>(System.Action<TState>, TState) Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute(Of TState)(System.Action(Of TState), TState)
Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.ExecuteAsync(System.Func<System.Threading.Tasks.Task>) Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.ExecuteAsync(System.Func(Of System.Threading.Tasks.Task))
Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.ExecuteAsync(System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task>, System.Threading.CancellationToken) Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.ExecuteAsync(System.Func(Of System.Threading.CancellationToken, System.Threading.Tasks.Task), System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.ExecuteAsync<TResult>(System.Func<System.Threading.Tasks.Task<TResult>>) Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.ExecuteAsync(Of TResult)(System.Func(Of System.Threading.Tasks.Task(Of TResult)))
Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.ExecuteAsync<TResult>(System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<TResult>>, System.Threading.CancellationToken) Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.ExecuteAsync(Of TResult)(System.Func(Of System.Threading.CancellationToken, System.Threading.Tasks.Task(Of TResult)), System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.ExecuteAsync<TState>(System.Func<TState, System.Threading.Tasks.Task>, TState) Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.ExecuteAsync(Of TState)(System.Func(Of TState, System.Threading.Tasks.Task), TState)
Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.ExecuteAsync<TState>(System.Func<TState, System.Threading.CancellationToken, System.Threading.Tasks.Task>, TState, System.Threading.CancellationToken) Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.ExecuteAsync(Of TState)(System.Func(Of TState, System.Threading.CancellationToken, System.Threading.Tasks.Task), TState, System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.ExecuteAsync<TState, TResult>(System.Func<TState, System.Threading.Tasks.Task<TResult>>, TState) Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.ExecuteAsync(Of TState, TResult)(System.Func(Of TState, System.Threading.Tasks.Task(Of TResult)), TState)