Skip to main content
Table of Contents

Class ReplayCompletion

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

How a replay ended, as the replaying worker reports it to Complete(ReplayCompletion).

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

Constructors

ReplayCompletion(Guid, ReplayResult, long, string?)

How a replay ended, as the replaying worker reports it to Complete(ReplayCompletion).

public ReplayCompletion(Guid RequestId, ReplayResult Result, long ReplayedEvents, string? ErrorMessage = null)

Parameters

RequestId Guid

The identity of the request the replay ran, as given to TryActivate(Guid).

Result ReplayResult

How the replay ended.

ReplayedEvents long

How many events the replay had applied when it ended.

ErrorMessage string

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

Properties

ErrorMessage

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

public string? ErrorMessage { get; init; }

Property Value

string

ReadModelsRestored

Whether the read models the replay emptied were restored to their state before it began.

public bool ReadModelsRestored { get; init; }

Property Value

bool

ReplayedEvents

How many events the replay had applied when it ended.

public long ReplayedEvents { get; init; }

Property Value

long

RequestId

The identity of the request the replay ran, as given to TryActivate(Guid).

public Guid RequestId { get; init; }

Property Value

Guid

Result

How the replay ended.

public ReplayResult Result { get; init; }

Property Value

ReplayResult