logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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

    In this article
    © 2026 Serenity. All Rights Reserved