Show / Hide Table of Contents

Interface IResilientTransaction

Represents a resilient transaction that handles EF execution strategies.

Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public interface IResilientTransaction

Methods

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

Execute the supplied operation in a transaction.

Declaration
Task<IdentityResult> ExecuteAsync(Func<CancellationToken, Task<IdentityResult>> action, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<IdentityResult>> action

The operation to execute in a transaction.

System.Threading.CancellationToken cancellationToken

The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled.

Returns
System.Threading.Tasks.Task<IdentityResult>

The System.Threading.Tasks.Task that represents the asynchronous operation, containing the IdentityResult of the supplied operation.

Back to top Generated by DocFX