Search Results for

    Show / Hide Table of Contents
    View Source

    Class UmbracoBuilder

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.DependencyInjection
    Assembly: Umbraco.Core.dll
    Syntax
    public class UmbracoBuilder : IUmbracoBuilder

    Constructors

    View Source

    UmbracoBuilder(IServiceCollection, IConfiguration, TypeLoader)

    Initializes a new instance of the UmbracoBuilder class primarily for testing.

    Declaration
    public UmbracoBuilder(IServiceCollection services, IConfiguration config, TypeLoader typeLoader)
    Parameters
    Type Name Description
    IServiceCollection services
    IConfiguration config
    TypeLoader typeLoader
    View Source

    UmbracoBuilder(IServiceCollection, IConfiguration, TypeLoader, ILoggerFactory, IProfiler, AppCaches, IHostingEnvironment)

    Initializes a new instance of the UmbracoBuilder class.

    Declaration
    public UmbracoBuilder(IServiceCollection services, IConfiguration config, TypeLoader typeLoader, ILoggerFactory loggerFactory, IProfiler profiler, AppCaches appCaches, IHostingEnvironment hostingEnvironment)
    Parameters
    Type Name Description
    IServiceCollection services
    IConfiguration config
    TypeLoader typeLoader
    ILoggerFactory loggerFactory
    IProfiler profiler
    AppCaches appCaches
    IHostingEnvironment hostingEnvironment

    Properties

    View Source

    AppCaches

    Declaration
    public AppCaches AppCaches { get; }
    Property Value
    Type Description
    AppCaches
    View Source

    BuilderHostingEnvironment

    A hosting environment created specifically for the IUmbracoBuilder. This is NOT the same instance that will be resolved from DI. Use only if required during configuration.

    Declaration
    public IHostingEnvironment BuilderHostingEnvironment { get; }
    Property Value
    Type Description
    IHostingEnvironment
    Remarks

    This may be null.

    View Source

    BuilderLoggerFactory

    A Logger factory created specifically for the IUmbracoBuilder. This is NOT the same instance that will be resolved from DI. Use only if required during configuration.

    Declaration
    public ILoggerFactory BuilderLoggerFactory { get; }
    Property Value
    Type Description
    ILoggerFactory
    View Source

    Config

    Declaration
    public IConfiguration Config { get; }
    Property Value
    Type Description
    IConfiguration
    View Source

    Profiler

    Declaration
    public IProfiler Profiler { get; }
    Property Value
    Type Description
    IProfiler
    View Source

    Services

    Declaration
    public IServiceCollection Services { get; }
    Property Value
    Type Description
    IServiceCollection
    View Source

    TypeLoader

    Declaration
    public TypeLoader TypeLoader { get; }
    Property Value
    Type Description
    TypeLoader

    Methods

    View Source

    Build()

    Declaration
    public void Build()
    View Source

    WithCollectionBuilder<TBuilder>()

    Gets a collection builder (and registers the collection).

    Declaration
    public TBuilder WithCollectionBuilder<TBuilder>()
        where TBuilder : ICollectionBuilder
    Returns
    Type Description
    TBuilder

    The collection builder.

    Type Parameters
    Name Description
    TBuilder

    The type of the collection builder.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • UmbracoBuilder(IServiceCollection, IConfiguration, TypeLoader)
      • UmbracoBuilder(IServiceCollection, IConfiguration, TypeLoader, ILoggerFactory, IProfiler, AppCaches, IHostingEnvironment)
    • Properties
      • AppCaches
      • BuilderHostingEnvironment
      • BuilderLoggerFactory
      • Config
      • Profiler
      • Services
      • TypeLoader
    • Methods
      • Build()
      • WithCollectionBuilder<TBuilder>()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX