Interface IOfflineFeatureStore
- Namespace
- Honua.Sdk.Offline.Abstractions
- Assembly
- Honua.Sdk.Abstractions.dll
Local feature storage adapter implemented by mobile, desktop, browser, or test stores.
public interface IOfflineFeatureStore
Methods
DeleteFeaturesAsync(string, string, IReadOnlyList<string>, IReadOnlyList<long>, CancellationToken)
Deletes features from a local source cache.
Task DeleteFeaturesAsync(string packageId, string sourceId, IReadOnlyList<string> featureIds, IReadOnlyList<long> objectIds, CancellationToken cancellationToken = default)
Parameters
packageIdstringOffline package identifier.
sourceIdstringSource identifier inside the package.
featureIdsIReadOnlyList<string>String feature identifiers to delete.
objectIdsIReadOnlyList<long>Numeric object identifiers to delete.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task
A task that completes when deletes are applied.
SaveFeaturesAsync(OfflineFeaturePage, CancellationToken)
Persists a feature result page for an offline source.
Task SaveFeaturesAsync(OfflineFeaturePage page, CancellationToken cancellationToken = default)
Parameters
pageOfflineFeaturePageFeature page to save.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task
A task that completes when the page is stored.