Interface IUmbracoBuilder
Represents the Umbraco builder used to configure services and dependencies during application startup.
Namespace: Umbraco.Cms.Core.DependencyInjection
Assembly: Umbraco.Core.dll
Syntax
public interface IUmbracoBuilder
Properties
View SourceAppCaches
Gets the AppCaches containing the application caches.
Declaration
AppCaches AppCaches { get; }
Property Value
| Type | Description |
|---|---|
| AppCaches |
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
ILoggerFactory BuilderLoggerFactory { get; }
Property Value
| Type | Description |
|---|---|
| ILoggerFactory |
Config
Gets the Microsoft.Extensions.Configuration.IConfiguration containing the application configuration properties.
Declaration
IConfiguration Config { get; }
Property Value
| Type | Description |
|---|---|
| IConfiguration |
Profiler
Gets the IProfiler used for performance profiling.
Declaration
IProfiler Profiler { get; }
Property Value
| Type | Description |
|---|---|
| IProfiler |
Services
Gets the Microsoft.Extensions.DependencyInjection.IServiceCollection where services are configured.
Declaration
IServiceCollection Services { get; }
Property Value
| Type | Description |
|---|---|
| IServiceCollection |
TypeLoader
Gets the TypeLoader used for type discovery and loading.
Declaration
TypeLoader TypeLoader { get; }
Property Value
| Type | Description |
|---|---|
| TypeLoader |
Methods
View SourceBuild()
Builds the Umbraco services by registering all configured collection builders with the service collection.
Declaration
void Build()
WithCollectionBuilder<TBuilder>()
Gets a collection builder and registers the collection.
Declaration
TBuilder WithCollectionBuilder<TBuilder>() where TBuilder : ICollectionBuilder
Returns
| Type | Description |
|---|---|
| TBuilder | The collection builder instance. |
Type Parameters
| Name | Description |
|---|---|
| TBuilder | The type of the collection builder. |