Table of Contents

Class ReduceResult

Namespace
Cratis.Chronicle.Reducers
Assembly
Cratis.Chronicle.dll

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? ModelState, EventSequenceNumber LastSuccessfullyObservedEvent, IEnumerable<string> ErrorMessages, string StackTrace)

Parameters

ModelState object

Potential model state, unless errored. Null means it should delete it.

LastSuccessfullyObservedEvent EventSequenceNumber

The sequence number of the last successfully observed event.

ErrorMessages IEnumerable<string>

Collection of error messages, if any.

StackTrace string

The stack trace, if an error occurred.

Properties

ErrorMessages

Collection of error messages, if any.

public IEnumerable<string> ErrorMessages { get; init; }

Property Value

IEnumerable<string>

IsSuccess

Gets whether or not the reduce operation was successful.

public bool IsSuccess { get; }

Property Value

bool

LastSuccessfullyObservedEvent

The sequence number of the last successfully observed event.

public EventSequenceNumber LastSuccessfullyObservedEvent { get; init; }

Property Value

EventSequenceNumber

ModelState

Potential model state, unless errored. Null means it should delete it.

public object? ModelState { get; init; }

Property Value

object

StackTrace

The stack trace, if an error occurred.

public string StackTrace { get; init; }

Property Value

string