Interface IOfflineSyncCheckpointStore
- Namespace
- Honua.Sdk.Offline.Abstractions
- Assembly
- Honua.Sdk.Abstractions.dll
Checkpoint store adapter for provider sync tokens and source-level pull progress.
public interface IOfflineSyncCheckpointStore
Methods
GetCheckpointAsync(string, string, CancellationToken)
Gets the last checkpoint for a package source.
Task<OfflineSyncCheckpoint?> GetCheckpointAsync(string packageId, string sourceId, CancellationToken cancellationToken = default)
Parameters
packageIdstringOffline package identifier.
sourceIdstringSource identifier inside the package.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<OfflineSyncCheckpoint>
The checkpoint, or null when no checkpoint exists.
SaveCheckpointAsync(OfflineSyncCheckpoint, CancellationToken)
Saves the last checkpoint for a package source.
Task SaveCheckpointAsync(OfflineSyncCheckpoint checkpoint, CancellationToken cancellationToken = default)
Parameters
checkpointOfflineSyncCheckpointCheckpoint to save.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task
A task that completes when the checkpoint is stored.