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
EventsAppliedlongThe 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.
OutcomeProjectionProcessingOutcomeWhy the invocation stopped.
HaltReasonProjectionHaltReasonWhat 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
Haltedalone, 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
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
Outcome
Why the invocation stopped.
public ProjectionProcessingOutcome Outcome { get; init; }