Table of Contents

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

packageId string

Offline package identifier.

sourceId string

Source identifier inside the package.

featureIds IReadOnlyList<string>

String feature identifiers to delete.

objectIds IReadOnlyList<long>

Numeric object identifiers to delete.

cancellationToken CancellationToken

Cancellation 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

page OfflineFeaturePage

Feature page to save.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

A task that completes when the page is stored.