Table of Contents

Interface ITransaction

Namespace
Foundation.Data.Doublets.Cli
Assembly
Foundation.Data.Doublets.Cli.dll

A live transaction handle. Disposal without commit rolls back automatically (R10).

public interface ITransaction : IDisposable
Inherited Members

Properties

Id

Guid Id { get; }

Property Value

Guid

IsCommitted

bool IsCommitted { get; }

Property Value

bool

IsRolledBack

bool IsRolledBack { get; }

Property Value

bool

StartedAt

DateTimeOffset StartedAt { get; }

Property Value

DateTimeOffset

Transitions

IReadOnlyList<Transition> Transitions { get; }

Property Value

IReadOnlyList<Transition>

Methods

Commit()

void Commit()

CommitAsync(CancellationToken)

Task CommitAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task

Rollback()

void Rollback()