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
RequestIdGuidThe identity of the request the replay ran.
StartedAtDateTimeOffsetWhen the replay started, by the replaying host's clock.
EndedAtDateTimeOffsetWhen the replay ended, by the replaying host's clock.
ReplayedEventslongHow many events the replay applied.
ResultReplayResultHow the replay ended.
ErrorMessagestring
Properties
EndedAt
When the replay ended, by the replaying host's clock.
public DateTimeOffset EndedAt { get; init; }
Property Value
ErrorMessage
public string? ErrorMessage { get; init; }
Property Value
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
ReplayedEvents
How many events the replay applied.
public long ReplayedEvents { get; init; }
Property Value
RequestId
The identity of the request the replay ran.
public Guid RequestId { get; init; }
Property Value
Result
How the replay ended.
public ReplayResult Result { get; init; }
Property Value
StartedAt
When the replay started, by the replaying host's clock.
public DateTimeOffset StartedAt { get; init; }