Table of Contents

Struct DeclaredRetentionKey

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

One retention declaration, named the way a durable record must name it — the tenant that owes the obligation and the aggregate type it covers.

public readonly record struct DeclaredRetentionKey : IEquatable<DeclaredRetentionKey>
Implements
Inherited Members

Remarks

Both terms, always, and the pair is the unit. The aggregate type alone is the WRITE path's question — whether to place a subject's fields under a separately destroyable key — and that question is deliberately tenant-blind. Whether an erasure may SPARE a key is a different question, decided per (tenant, type) against the tenant the erasure request itself recorded. One durable record of pairs answers both, the second directly and the first by projecting the tenant away; two records would be two things to keep in step.

Constructors

DeclaredRetentionKey(string, string)

One retention declaration, named the way a durable record must name it — the tenant that owes the obligation and the aggregate type it covers.

public DeclaredRetentionKey(string TenantId, string AggregateType)

Parameters

TenantId string

The tenant partition the declaration names, exactly as the registry normalises it. Every spelling of "untenanted" collapses onto one value before it reaches here, so a single-tenant deployment matches its own declarations.

AggregateType string

The aggregate type the obligation covers, as the event store records it.

Remarks

Both terms, always, and the pair is the unit. The aggregate type alone is the WRITE path's question — whether to place a subject's fields under a separately destroyable key — and that question is deliberately tenant-blind. Whether an erasure may SPARE a key is a different question, decided per (tenant, type) against the tenant the erasure request itself recorded. One durable record of pairs answers both, the second directly and the first by projecting the tenant away; two records would be two things to keep in step.

Properties

AggregateType

The aggregate type the obligation covers, as the event store records it.

public string AggregateType { get; init; }

Property Value

string

TenantId

The tenant partition the declaration names, exactly as the registry normalises it. Every spelling of "untenanted" collapses onto one value before it reaches here, so a single-tenant deployment matches its own declarations.

public string TenantId { get; init; }

Property Value

string