Share via


DefaultExecutionStrategy Class

Definition

An IDbExecutionStrategy that doesn't retry operations if they fail.

public class DefaultExecutionStrategy : System.Data.Entity.Infrastructure.IDbExecutionStrategy
type DefaultExecutionStrategy = class
    interface IDbExecutionStrategy
Public Class DefaultExecutionStrategy
Implements IDbExecutionStrategy
Inheritance
DefaultExecutionStrategy
Implements

Constructors

DefaultExecutionStrategy()

Properties

RetriesOnFailure

Returns false to indicate that DefaultExecutionStrategy will not retry the execution after a failure.

Methods

Execute(Action)

Executes the specified operation once.

Execute<TResult>(Func<TResult>)

Executes the specified operation once and returns the result.

ExecuteAsync(Func<Task>, CancellationToken)

Executes the specified asynchronous operation once, without retrying on failure.

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

Executes the specified asynchronous operation once, without retrying on failure.

Applies to