Share via


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

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

Methods

Execute(Action)

Executes the specified operation.

Execute<TResult>(Func<TResult>)

Executes the specified operation and returns the result.

ExecuteAsync(Func<Task>, CancellationToken)

Executes the specified asynchronous operation.

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

Executes the specified asynchronous operation and returns the result.

Applies to