Skip to main content
Table of Contents

Interface IEventChainService

Namespace
Stratara.Abstractions.EventSourcing
Assembly
Stratara.Abstractions.dll

Decides whether the global event-chain anchor needs to be advanced and adds a new anchor row when required. Typically invoked from the event-stream-hash worker on each batch.

public interface IEventChainService
Extension Methods

Methods

AddAnchorIfNeededAsync(CancellationToken)

Add a new anchor if the configured threshold has been crossed; no-op otherwise.

Task AddAnchorIfNeededAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task