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
IsCommitted
bool IsCommitted { get; }
Property Value
IsRolledBack
bool IsRolledBack { get; }
Property Value
StartedAt
DateTimeOffset StartedAt { get; }
Property Value
Transitions
IReadOnlyList<Transition<TLinkAddress>> Transitions { get; }
Property Value
- IReadOnlyList<Transition<TLinkAddress>>
Methods
Commit()
void Commit()
CommitAsync(CancellationToken)
Task CommitAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
Rollback()
void Rollback()