Skip to main content
Table of Contents

Class ReplayOutcome

Namespace
Stratara.Abstractions.Projections
Assembly
Stratara.Abstractions.dll

The outcome of a replay that has ended.

public sealed record ReplayOutcome : IEquatable<ReplayOutcome>
Inheritance
ReplayOutcome
Implements
Inherited Members
Extension Methods

Constructors

ReplayOutcome(Guid, DateTimeOffset, DateTimeOffset, long, ReplayResult, string?)

The outcome of a replay that has ended.

public ReplayOutcome(Guid RequestId, DateTimeOffset StartedAt, DateTimeOffset EndedAt, long ReplayedEvents, ReplayResult Result, string? ErrorMessage = null)

Parameters

RequestId Guid

The identity of the request the replay ran.

StartedAt DateTimeOffset

When the replay started, by the replaying host's clock.

EndedAt DateTimeOffset

When the replay ended, by the replaying host's clock.

ReplayedEvents long

How many events the replay applied.

Result ReplayResult

How the replay ended.

ErrorMessage string

The failure's message, for Failed; null otherwise.

Properties

EndedAt

When the replay ended, by the replaying host's clock.

public DateTimeOffset EndedAt { get; init; }

Property Value

DateTimeOffset

ErrorMessage

The failure's message, for Failed; null otherwise.

public string? ErrorMessage { get; init; }

Property Value

string

ReadModelsRestored

Whether the read models were restored to their state before the replay began — after a failure, on a host that keeps the read models a replay empties.

public bool ReadModelsRestored { get; init; }

Property Value

bool

ReplayedEvents

How many events the replay applied.

public long ReplayedEvents { get; init; }

Property Value

long

RequestId

The identity of the request the replay ran.

public Guid RequestId { get; init; }

Property Value

Guid

Result

How the replay ended.

public ReplayResult Result { get; init; }

Property Value

ReplayResult

StartedAt

When the replay started, by the replaying host's clock.

public DateTimeOffset StartedAt { get; init; }

Property Value

DateTimeOffset