Search Results for

    Show / Hide Table of Contents
    View Source

    Class ApiContentBuilder

    Default implementation of IApiContentBuilder that builds API content objects for the Delivery API.

    Inheritance
    object
    ApiContentBuilderBase<IApiContent>
    Namespace: Umbraco.Cms.Core.DeliveryApi
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class ApiContentBuilder : ApiContentBuilderBase<IApiContent>, IApiContentBuilder

    Constructors

    View Source

    ApiContentBuilder(IApiContentNameProvider, IApiContentRouteBuilder, IOutputExpansionStrategyAccessor, IVariationContextAccessor)

    Initializes a new instance of the ApiContentBuilder class.

    Declaration
    public ApiContentBuilder(IApiContentNameProvider apiContentNameProvider, IApiContentRouteBuilder apiContentRouteBuilder, IOutputExpansionStrategyAccessor outputExpansionStrategyAccessor, IVariationContextAccessor variationContextAccessor)
    Parameters
    Type Name Description
    IApiContentNameProvider apiContentNameProvider

    The API content name provider.

    IApiContentRouteBuilder apiContentRouteBuilder

    The API content route builder.

    IOutputExpansionStrategyAccessor outputExpansionStrategyAccessor

    The output expansion strategy accessor.

    IVariationContextAccessor variationContextAccessor

    The variation context accessor.

    Methods

    View Source

    Create(IPublishedContent, string, IApiContentRoute, IDictionary<string, object?>)

    Creates an API content instance from the specified parameters.

    Declaration
    protected override IApiContent Create(IPublishedContent content, string name, IApiContentRoute route, IDictionary<string, object?> properties)
    Parameters
    Type Name Description
    IPublishedContent content

    The published content.

    string name

    The name of the content.

    IApiContentRoute route

    The route of the content.

    IDictionary<string, object> properties

    The properties of the content.

    Returns
    Type Description
    IApiContent

    An API content instance.

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