Table of Contents

Interface IOperationsTransaction

Namespace
JsonApiDotNetCore.AtomicOperations
Assembly
JsonApiDotNetCore.dll

Represents the overarching transaction in an atomic:operations request.

[PublicAPI]
public interface IOperationsTransaction : IAsyncDisposable
Inherited Members

Properties

TransactionId

Identifies the active transaction.

string TransactionId { get; }

Property Value

string

Methods

AfterProcessOperationAsync(CancellationToken)

Enables to execute custom logic after processing of an operation succeeds.

Task AfterProcessOperationAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task

BeforeProcessOperationAsync(CancellationToken)

Enables to execute custom logic before processing of an operation starts.

Task BeforeProcessOperationAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task

CommitAsync(CancellationToken)

Commits all changes made to the underlying data store.

Task CommitAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task