Class ProjectionTransaction
- Namespace
- Excalibur.EventSourcing
- Assembly
- Excalibur.EventSourcing.Abstractions.dll
Authoritative stream history and transaction owned by a transactional append.
public sealed record ProjectionTransaction : IEquatable<ProjectionTransaction>
- Inheritance
-
ProjectionTransaction
- Implements
- Inherited Members
Remarks
Valid only during the append callback. No external effects or independently committed writes are permitted.
Constructors
ProjectionTransaction(IDbTransaction, IReadOnlyList<StoredEvent>, string, string)
Authoritative stream history and transaction owned by a transactional append.
public ProjectionTransaction(IDbTransaction Transaction, IReadOnlyList<StoredEvent> History, string TenantId, string SourceIdentity)
Parameters
TransactionIDbTransactionThe transaction. Participants must not commit or dispose it.
HistoryIReadOnlyList<StoredEvent>Complete ordered history before this append, protected until commit.
TenantIdstringThe source tenant partition.
SourceIdentitystringThe source table identity within the transaction's database.
Remarks
Valid only during the append callback. No external effects or independently committed writes are permitted.
Properties
History
Complete ordered history before this append, protected until commit.
public IReadOnlyList<StoredEvent> History { get; init; }
Property Value
SourceIdentity
The source table identity within the transaction's database.
public string SourceIdentity { get; init; }
Property Value
TenantId
The source tenant partition.
public string TenantId { get; init; }
Property Value
Transaction
The transaction. Participants must not commit or dispose it.
public IDbTransaction Transaction { get; init; }