logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IFoundationSettingsFinder

    Interface for finding foundation settings by GUID, with caching capabilities.

    Namespace: Serenity.Global.Domain.Services
    Assembly: Serenity.Global.Domain.dll
    Syntax
    public interface IFoundationSettingsFinder

    Methods

    Clear()

    Clears the internal cache.

    Declaration
    void Clear()

    Find(string)

    Returns the settings by GUID (or null).

    Declaration
    IFoundationSettings Find(string guid)
    Parameters
    Type Name Description
    string guid

    The GUID of the foundation settings to find.

    Returns
    Type Description
    IFoundationSettings

    The foundation settings matching the specified GUID, or null if not found.

    Find<T>(string)

    Returns the settings by GUID and casts it to T (or null).

    Declaration
    T Find<T>(string guid) where T : class, IFoundationSettings
    Parameters
    Type Name Description
    string guid

    The GUID of the foundation settings to find.

    Returns
    Type Description
    T

    The foundation settings of type T matching the specified GUID, or null if not found or not of type T.

    Type Parameters
    Name Description
    T

    The type of foundation settings to return.

    Warmup(params string[])

    Preloads/rebuilds the cache. If you pass labels, they are used for this and future searches.

    Declaration
    void Warmup(params string[] labels)
    Parameters
    Type Name Description
    string[] labels

    Optional labels to filter the settings to be warmed up.

    In this article
    © 2026 Serenity. All Rights Reserved