IDbExecutionStrategy IDbExecutionStrategy IDbExecutionStrategy 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 IDbExecutionStrategy
type IDbExecutionStrategy = interface
Public Interface IDbExecutionStrategy
Derived

Properties

RetriesOnFailure RetriesOnFailure RetriesOnFailure

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

Methods

Execute(Action) Execute(Action) Execute(Action)

Executes the specified operation.

Execute<TResult>(Func<TResult>) Execute<TResult>(Func<TResult>) Execute<TResult>(Func<TResult>)

Executes the specified operation and returns the result.

ExecuteAsync(Func<Task>, CancellationToken) ExecuteAsync(Func<Task>, CancellationToken) ExecuteAsync(Func<Task>, CancellationToken)

Executes the specified asynchronous operation.

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

Executes the specified asynchronous operation and returns the result.

Applies to