DefaultHostApplicationBuilder class

Represents a hosted applications and services builder that helps manage configuration, logging, lifetime, and more.

Implemented types

Properties

configuration ConfigurationManager
Gets the set of key/value configuration properties.
no setteroverride
environment HostEnvironment
Gets the information about the hosting environment an application is running in.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
logging LoggingBuilder
Gets a collection of logging providers for the application to compose. This is useful for adding new logging providers.
no setteroverride
metrics MetricsBuilder
Gets a builder that allows enabling metrics and directing their output.
no setteroverride
properties Map<Object, Object>
Gets a central location for sharing state between components during the host building process.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
services ServiceCollection
Gets a collection of services for the application to compose. This is useful for adding user provided or framework provided services.
no setteroverride

Methods

asHostBuilder() HostBuilder
build() Host
Builds the host. This method can only be called once.
override
configureContainer<TContainerBuilder>(ServiceProviderFactory<TContainerBuilder> factory, ConfigureContainer<TContainerBuilder>? configure) → void
Registers a ServiceProviderFactory instance to be used to create the ServiceProvider.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited