Search Results for

    Show / Hide Table of Contents
    View Source

    Class CompositionExtensions

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class CompositionExtensions

    Methods

    View Source

    SetPublishedSnapshotService(IUmbracoBuilder, Func<IServiceProvider, IPublishedSnapshotService>)

    Sets the published snapshot service.

    Declaration
    public static IUmbracoBuilder SetPublishedSnapshotService(this IUmbracoBuilder builder, Func<IServiceProvider, IPublishedSnapshotService> factory)
    Parameters
    Type Name Description
    IUmbracoBuilder builder

    The builder.

    Func<IServiceProvider, IPublishedSnapshotService> factory

    A function creating a published snapshot service.

    Returns
    Type Description
    IUmbracoBuilder
    View Source

    SetPublishedSnapshotService(IUmbracoBuilder, IPublishedSnapshotService)

    Sets the published snapshot service.

    Declaration
    public static IUmbracoBuilder SetPublishedSnapshotService(this IUmbracoBuilder builder, IPublishedSnapshotService service)
    Parameters
    Type Name Description
    IUmbracoBuilder builder

    The builder.

    IPublishedSnapshotService service

    A published snapshot service.

    Returns
    Type Description
    IUmbracoBuilder
    View Source

    SetPublishedSnapshotService<T>(IUmbracoBuilder)

    Sets the published snapshot service.

    Declaration
    public static IUmbracoBuilder SetPublishedSnapshotService<T>(this IUmbracoBuilder builder)
        where T : class, IPublishedSnapshotService
    Parameters
    Type Name Description
    IUmbracoBuilder builder

    The builder.

    Returns
    Type Description
    IUmbracoBuilder
    Type Parameters
    Name Description
    T

    The type of the published snapshot service.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • SetPublishedSnapshotService(IUmbracoBuilder, Func<IServiceProvider, IPublishedSnapshotService>)
      • SetPublishedSnapshotService(IUmbracoBuilder, IPublishedSnapshotService)
      • SetPublishedSnapshotService<T>(IUmbracoBuilder)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX