Table of Contents

Interface IProjectionGenerationRepoint

Namespace
Excalibur.EventSourcing
Assembly
Excalibur.EventSourcing.Abstractions.dll

Conditionally changes the destination resolved by projection readers.

public interface IProjectionGenerationRepoint

Remarks

Canonical destination identities use the same format as IProjectionDestinationIdentity. Implementations preserve reader configuration and never retire member state or delete destinations.

Methods

GetActiveDestinationAsync(CancellationToken)

Reads the authoritative destination currently resolved by readers.

Task<string?> GetActiveDestinationAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<string>

The canonical destination, or null when no single destination is configured. Read failures throw.

RepointAsync(string, string, CancellationToken)

Changes an expected reader destination to a new destination, or observes an already completed transition.

Task RepointAsync(string expectedDestination, string destination, CancellationToken cancellationToken)

Parameters

expectedDestination string

The canonical destination expected before the transition.

destination string

The canonical destination readers should resolve.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

A task completing when the conditional update is acknowledged.

Remarks

A transport failure after submission has an unknown outcome. Retry by reading authoritative state. Concurrent external reconfiguration outside this protocol requires separate coordination.