Table of Contents

Struct ProjectionRebuildResult

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

The outcome of a rebuild. A SEPARATE type from ProjectionRefoldResult, deliberately.

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

Remarks

Why not reuse ProjectionRefoldResult, which already carries a Vanished. Two of its four members are unreachable here — Superseded because this operation compares no position, and RequiresRebuild because this operation IS the rebuild — so reusing it would oblige every caller to write two branches that can never be taken, and a reader could not tell those from branches that merely have not happened yet.

Why no position is carried, where the other two results carry one. There is nothing to report: on Applied the stored position is the argument the caller just passed, and on Vanished there is no row to hold one. A field that no provider could fill with a measured value would read as measured.

Constructors

ProjectionRebuildResult(ProjectionRebuildOutcome)

The outcome of a rebuild. A SEPARATE type from ProjectionRefoldResult, deliberately.

public ProjectionRebuildResult(ProjectionRebuildOutcome Outcome)

Parameters

Outcome ProjectionRebuildOutcome

What the rebuild did.

Remarks

Why not reuse ProjectionRefoldResult, which already carries a Vanished. Two of its four members are unreachable here — Superseded because this operation compares no position, and RequiresRebuild because this operation IS the rebuild — so reusing it would oblige every caller to write two branches that can never be taken, and a reader could not tell those from branches that merely have not happened yet.

Why no position is carried, where the other two results carry one. There is nothing to report: on Applied the stored position is the argument the caller just passed, and on Vanished there is no row to hold one. A field that no provider could fill with a measured value would read as measured.

Properties

Outcome

What the rebuild did.

public ProjectionRebuildOutcome Outcome { get; init; }

Property Value

ProjectionRebuildOutcome