Class ReduceResult
Represents the result of a reduce operation.
public record ReduceResult : IEquatable<ReduceResult>
- Inheritance
-
ReduceResult
- Implements
- Inherited Members
Constructors
ReduceResult(object?, EventSequenceNumber, IEnumerable<string>, string)
Represents the result of a reduce operation.
public ReduceResult(object? ReadModelState, EventSequenceNumber LastSuccessfullyObservedEvent, IEnumerable<string> ErrorMessages, string StackTrace)
Parameters
ReadModelStateobjectPotential read model state, unless errored. Null means it should delete it.
LastSuccessfullyObservedEventEventSequenceNumberThe sequence number of the last successfully observed event.
ErrorMessagesIEnumerable<string>Collection of error messages, if any.
StackTracestringThe stack trace, if an error occurred.
Properties
ErrorMessages
Collection of error messages, if any.
public IEnumerable<string> ErrorMessages { get; init; }
Property Value
IsSuccess
Gets whether or not the reduce operation was successful.
public bool IsSuccess { get; }
Property Value
LastSuccessfullyObservedEvent
The sequence number of the last successfully observed event.
public EventSequenceNumber LastSuccessfullyObservedEvent { get; init; }
Property Value
ReadModelState
Potential read model state, unless errored. Null means it should delete it.
public object? ReadModelState { get; init; }
Property Value
StackTrace
The stack trace, if an error occurred.
public string StackTrace { get; init; }