The elements required to manage a Stream checkpoint inside a Postgres data store
-
Asp.Net Standard/Core Dependency Injection
- Use the provided
services.AddPostgresCheckpointManagement(Action<PostgresCheckpointOptions>? optionsAccessor = null)
method
- Use the provided
-
Other Containers
- Register the PostgresCheckpointOptions
- Register a new instance of
ICheckpointManager
with concrete implementationPostgresCheckpointManager
Task SetCheckpoint(string checkpointName, long checkpoint, CancellationToken cancellationToken = default)
- An asynchronous function to call when setting the checkpoint
Task<long?> GetCheckpoint(string checkpointName, CancellationToken cancellationToken = default)
- An asynchronous function to call when getting the checkpoint
Task ClearCheckpoint(string checkpointName, CancellationToken cancellationToken = default)
- An asynchronous function to call when clearing the checkpoint