Table of Contents

Enum ColdArchiveLayout

Namespace
Excalibur.EventSourcing
Assembly
Excalibur.EventSourcing.Abstractions.dll

Selects the persisted object layout of a cold event store.

public enum ColdArchiveLayout

Fields

Legacy = 0

Uses tenant/aggregate-ID keys. Any namespace activation marker or per-stream migration receipt prevents legacy operations; an occupied slot belonging to another aggregate type must fail.

TypedV2 = 1

Uses tenant/aggregate-type/aggregate-ID keys. Requires durable namespace activation and validates retained migration history before reading or updating an already migrated stream. Ordinary reads, writes and existence checks fail for an occupied legacy slot without a verified migration receipt. After activation, a slot with no legacy source can begin fresh typed history. Another aggregate type at the same tenant/ID can begin after the occupied slot's migration receipt and retained baseline validate.

Remarks

Providers capture this selection when the store is constructed. Changing layout requires an explicit namespace cutover through IColdEventStoreMigration; configuration alone never migrates data. Unknown values must be rejected. Existing namespaces default to Legacy for compatibility.