docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IMetadataRepository

    Provides an abstraction of the MetadataRepository to allow testing and mocking. Use the MetadataRepository (the default implementation) in functional code to implement this interface's functionality.

    Namespace: Unity.Cloud.Metadata
    Assembly: solution.dll
    Syntax
    public interface IMetadataRepository

    Methods

    GetAllKeysAsync()

    Gets a list of all the possible root keys in the objects contained in the dataset.

    Declaration
    Task<IEnumerable<string>> GetAllKeysAsync()
    Returns
    Type Description
    Task<IEnumerable<string>>

    The list of possible root keys in the dataset's metadata.

    GetMetadataAsync(GetMetadataParameters, CancellationToken)

    Gets a list of Match in the dataset from a list of owners ID.

    Declaration
    Task<MatchCollection> GetMetadataAsync(GetMetadataParameters parameters, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    GetMetadataParameters parameters

    The parameters containing the filter's conditions to extract only records that fulfill them.

    CancellationToken cancellationToken

    A cancellation token

    Returns
    Type Description
    Task<MatchCollection>

    The list of Match.

    Extension Methods

    MetadataRepositoryExtensions.GetAllIdsAsync(IMetadataRepository, CancellationToken)
    MetadataRepositoryExtensions.GetAllMetadataAsync(IMetadataRepository, CancellationToken)
    MetadataRepositoryExtensions.Query(IMetadataRepository)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)