Class BucketStorageAdapterExtensions
Provides type-safe wrappers for ReadOrUpdateCheckpoint(string, string?).
Default Interface Implementations would be preferred here, but netstandard2.0 doesn't
support them.
public static class BucketStorageAdapterExtensions
- Inheritance
-
BucketStorageAdapterExtensions
- Inherited Members
Methods
- CurrentCheckpointRequestId(IBucketStorageAdapter)
Returns the highest checkpoint request ID that has been requested on this device.
- NextCheckpointRequestId(IBucketStorageAdapter)
Increments and returns the local checkpoint counter.
- SeedCheckpointRequestId(IBucketStorageAdapter, string)
Seeds the local checkpoint request ID counter using a response from the server.
Seeding the local counter achieves two goals:
- The service is allowed to forget our checkpoint counter, so we remind it whenever we connect.
- Checkpoint requests are scoped per user-and-device combo, but the local ID counter is scoped per-device. Seeding ensures we generate correctly incrementing IDs after switching user accounts.