Table of Contents

Struct ProjectionProcessingResult

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

What one projection-processing invocation did.

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

Constructors

ProjectionProcessingResult(long, ProjectionProcessingOutcome, ProjectionHaltReason)

What one projection-processing invocation did.

public ProjectionProcessingResult(long EventsApplied, ProjectionProcessingOutcome Outcome, ProjectionHaltReason HaltReason)

Parameters

EventsApplied long

The number of stream events in pages processed by this invocation, including tombstones and contested pages. This is not a count of unique handler effects or a measure of another processor's work.

Outcome ProjectionProcessingOutcome

Why the invocation stopped.

HaltReason ProjectionHaltReason

What caused a Halted outcome, and None for every other outcome. Required rather than defaulted: a caller deciding whether to wait or to give up cannot act on Halted alone, and a default would let a producer leave "not determined" looking indistinguishable from "did not halt".

Properties

Attestation

Gets the roster receipt for a caught-up observation.

public ProjectionAttestation? Attestation { get; init; }

Property Value

ProjectionAttestation

The receipt, or null when no observation was confirmed.

EventsApplied

The number of stream events in pages processed by this invocation, including tombstones and contested pages. This is not a count of unique handler effects or a measure of another processor's work.

public long EventsApplied { get; init; }

Property Value

long

HaltReason

What caused a Halted outcome, and None for every other outcome. Required rather than defaulted: a caller deciding whether to wait or to give up cannot act on Halted alone, and a default would let a producer leave "not determined" looking indistinguishable from "did not halt".

public ProjectionHaltReason HaltReason { get; init; }

Property Value

ProjectionHaltReason

Outcome

Why the invocation stopped.

public ProjectionProcessingOutcome Outcome { get; init; }

Property Value

ProjectionProcessingOutcome