Table of Contents

Interface IProjectionVisibilityBarrier

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

Establishes search visibility for projection writes observed by a processing page.

public interface IProjectionVisibilityBarrier

Remarks

Resolve this optional capability through the projection store's service-provider interface. A processor must await the barrier after successful folds, including skipped duplicate or superseded writes, and before acknowledging the page in its checkpoint. Write-level refresh settings alone cannot cover a competing writer whose state was observed before its refresh finished. Failure or cancellation must prevent acknowledgment; this barrier does not make external effects atomic.

Methods

EnsureVisibleAsync(CancellationToken)

Makes writes already observed by this processing page visible to subsequent searches.

Task EnsureVisibleAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task

A task completing only after the store's search visibility barrier succeeds.