SqlServerExecutionStrategy SqlServerExecutionStrategy Class

Definition

public class SqlServerExecutionStrategy : IExecutionStrategy
Public Class SqlServerExecutionStrategy
    Implements IExecutionStrategy
Inheritance
System.ObjectSystem.Object
SqlServerExecutionStrategySqlServerExecutionStrategy
Implements

Properties

Instance Instance

public static SqlServerExecutionStrategy Instance { get; }
Public Shared ReadOnly Property Instance As SqlServerExecutionStrategy

RetriesOnFailure RetriesOnFailure

public virtual bool RetriesOnFailure { get; }
Public Overridable ReadOnly Property RetriesOnFailure As Boolean
Value
System.Boolean System.Boolean

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

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

public virtual TResult Execute<TState, TResult>(Func<TState, TResult> operation, TState state)
Public Overridable Function Execute(Of TState, TResult)(operation As Func(Of TState, TResult), state As TState) As TResult
Type Parameters
TState
TResult
Parameters
operation
System.Func<TState, TResult> System.Func(Of TState, TResult)
state
TState TState
Returns
TResult TResult

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

public virtual Task<TResult> ExecuteAsync<TState, TResult>(Func<TState, CancellationToken, Task<TResult>> operation, TState state, CancellationToken cancellationToken)
Public Overridable Function ExecuteAsync(Of TState, TResult)(operation As Func(Of TState, CancellationToken, Task(Of TResult)), state As TState, cancellationToken As CancellationToken) As Task(Of TResult)
Type Parameters
TState
TResult
Parameters
operation
System.Func<TState, System.Threading.CancellationToken, System.Threading.Tasks.Task<TResult>> System.Func(Of TState, System.Threading.CancellationToken, System.Threading.Tasks.Task(Of TResult))
state
TState TState
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<TResult> System.Threading.Tasks.Task(Of TResult)

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object