Skip to main content
Table of Contents

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

IsActive bool

Whether a replay is currently running.

ProcessedEvents long

Number of events already processed.

TotalEvents long

Total number of events to process for this replay.

Percentage int

Convenience integer percentage in [0, 100].

ErrorMessage string

Last error message if the replay failed; null otherwise.

Properties

ErrorMessage

Last error message if the replay failed; null otherwise.

public string? ErrorMessage { get; init; }

Property Value

string

IsActive

Whether a replay is currently running.

public bool IsActive { get; init; }

Property Value

bool

LastReplay

The outcome of the last replay that ended, kept until the next one ends; null before any replay has ended. A reader that polls can tell from it a replay that finished between two polls from one that never ran.

public ReplayOutcome? LastReplay { get; init; }

Property Value

ReplayOutcome

Percentage

Convenience integer percentage in [0, 100].

public int Percentage { get; init; }

Property Value

int

ProcessedEvents

Number of events already processed.

public long ProcessedEvents { get; init; }

Property Value

long

RequestId

The identity of the request the running replay runs; null while none runs.

public Guid? RequestId { get; init; }

Property Value

Guid?

TotalEvents

Total number of events to process for this replay.

public long TotalEvents { get; init; }

Property Value

long