Class ReplayProgress
- Namespace
- Stratara.Abstractions.Projections
- Assembly
- Stratara.Abstractions.dll
Snapshot of replay progress at a point in time. Returned by GetProgress() for status dashboards.
public sealed record ReplayProgress : IEquatable<ReplayProgress>
- Inheritance
-
ReplayProgress
- Implements
- Inherited Members
- Extension Methods
Constructors
ReplayProgress(bool, long, long, int, string?)
Snapshot of replay progress at a point in time. Returned by GetProgress() for status dashboards.
public ReplayProgress(bool IsActive, long ProcessedEvents, long TotalEvents, int Percentage, string? ErrorMessage = null)
Parameters
IsActiveboolWhether a replay is currently running.
ProcessedEventslongNumber of events already processed.
TotalEventslongTotal number of events to process for this replay.
PercentageintConvenience integer percentage in
[0, 100].ErrorMessagestringLast error message if the replay failed;
nullotherwise.
Properties
ErrorMessage
Last error message if the replay failed; null otherwise.
public string? ErrorMessage { get; init; }
Property Value
IsActive
Whether a replay is currently running.
public bool IsActive { get; init; }
Property Value
Percentage
Convenience integer percentage in [0, 100].
public int Percentage { get; init; }
Property Value
ProcessedEvents
Number of events already processed.
public long ProcessedEvents { get; init; }
Property Value
TotalEvents
Total number of events to process for this replay.
public long TotalEvents { get; init; }