Interface IAssetKeyCatalog
Neutral catalog that returns asset keys based on labels.
Concrete implementation (Unity/Addressables) lives in Infrastructure layer.
Namespace: Serenity.AssetPrefetcher.Application.Interfaces
Assembly: Serenity.AssetPrefetcher.Application.dll
Syntax
public interface IAssetKeyCatalog
Methods
GetKeysByLabelsAsync(IEnumerable<string>, CancellationToken)
Retrieves asset keys asynchronously based on the provided labels.
Declaration
Task<HashSet<string>> GetKeysByLabelsAsync(IEnumerable<string> labels, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<string> | labels | Collection of labels to search for assets |
| CancellationToken | cancellationToken | Cancellation token for async operation |
Returns
| Type | Description |
|---|---|
| Task<HashSet<string>> | Set of unique asset keys matching the labels |