Table of Contents

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

Transaction IDbTransaction

The transaction. Participants must not commit or dispose it.

History IReadOnlyList<StoredEvent>

Complete ordered history before this append, protected until commit.

TenantId string

The source tenant partition.

SourceIdentity string

The 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

IReadOnlyList<StoredEvent>

SourceIdentity

The source table identity within the transaction's database.

public string SourceIdentity { get; init; }

Property Value

string

TenantId

The source tenant partition.

public string TenantId { get; init; }

Property Value

string

Transaction

The transaction. Participants must not commit or dispose it.

public IDbTransaction Transaction { get; init; }

Property Value

IDbTransaction