HostApplicationBuilder class abstract

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

Implementers

Constructors

HostApplicationBuilder({HostApplicationBuilderSettings? settings})
Initializes a new instance of the HostApplicationBuilder class with optional settings.
factory

Properties

configuration ConfigurationManager
Gets the set of key/value configuration properties.
no setter
environment HostEnvironment
Gets the information about the hosting environment an application is running in.
no setter
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 setter
metrics MetricsBuilder
Gets a builder that allows enabling metrics and directing their output.
no setter
properties Map<Object, Object>
Gets a central location for sharing state between components during the host building process.
no setter
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 setter

Methods

build() Host
Builds the host. This method can only be called once.
configureContainer<TContainerBuilder>(ServiceProviderFactory<TContainerBuilder> factory, ConfigureContainerBuilder<TContainerBuilder>? configure) → void
Registers a ServiceProviderFactory<TContainerBuilder> instance to be used to create the ServiceProvider.
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