Table of Contents

Interface ITransaction<TLinkAddress>

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<TLinkAddress> : IDisposable where TLinkAddress : IUnsignedNumber<TLinkAddress>

Type Parameters

TLinkAddress
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<TLinkAddress>> Transitions { get; }

Property Value

IReadOnlyList<Transition<TLinkAddress>>

Methods

Commit()

void Commit()

CommitAsync(CancellationToken)

Task CommitAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task

Rollback()

void Rollback()