Table of Contents

Interface IFirestoreCdcStateStore

Namespace
Excalibur.Cdc.Firestore
Assembly
Excalibur.Cdc.Firestore.dll

Defines the contract for managing Firestore CDC position state.

public interface IFirestoreCdcStateStore : ICdcStateStore, IAsyncDisposable, IDisposable
Inherited Members

Remarks

Extends the shared ICdcStateStore contract with Firestore-specific strongly-typed position accessors.

Methods

GetPositionAsync(string, CancellationToken)

Gets the last saved position for a processor.

Task<FirestoreCdcPosition?> GetPositionAsync(string processorName, CancellationToken cancellationToken)

Parameters

processorName string

The unique processor name.

cancellationToken CancellationToken

A token to observe for cancellation requests.

Returns

Task<FirestoreCdcPosition>

The last saved position, or null if no position exists.

SavePositionAsync(string, FirestoreCdcPosition, CancellationToken)

Saves the current position for a processor.

Task SavePositionAsync(string processorName, FirestoreCdcPosition position, CancellationToken cancellationToken)

Parameters

processorName string

The unique processor name.

position FirestoreCdcPosition

The position to save.

cancellationToken CancellationToken

A token to observe for cancellation requests.

Returns

Task

A task representing the asynchronous operation.