Search Results for

    Show / Hide Table of Contents
    View Source

    Class DynamicRootService

    Default implementation of IDynamicRootService that resolves dynamic roots for content pickers using a collection of origin finders and query steps.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.DynamicRoot
    Assembly: Umbraco.Core.dll
    Syntax
    public class DynamicRootService : IDynamicRootService

    Constructors

    View Source

    DynamicRootService(DynamicRootOriginFinderCollection, DynamicRootQueryStepCollection)

    Initializes a new instance of the DynamicRootService class.

    Declaration
    public DynamicRootService(DynamicRootOriginFinderCollection originFinderCollection, DynamicRootQueryStepCollection queryStepCollection)
    Parameters
    Type Name Description
    DynamicRootOriginFinderCollection originFinderCollection

    The collection of origin finders used to locate the starting point for dynamic root resolution.

    DynamicRootQueryStepCollection queryStepCollection

    The collection of query steps used to filter or traverse the content tree from the origin.

    Methods

    View Source

    GetDynamicRootsAsync(DynamicRootNodeQuery)

    Gets the dynamic root content keys based on the specified query.

    Declaration
    public Task<IEnumerable<Guid>> GetDynamicRootsAsync(DynamicRootNodeQuery dynamicRootNodeQuery)
    Parameters
    Type Name Description
    DynamicRootNodeQuery dynamicRootNodeQuery

    The query specifying the origin, context, and optional query steps for finding dynamic roots.

    Returns
    Type Description
    Task<IEnumerable<Guid>>

    A task that represents the asynchronous operation, containing a collection of unique identifiers for the resolved dynamic root content items.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX