HostBuilder class

A program initialization abstraction.

Implementers
Available Extensions

Constructors

HostBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
properties Map<Object, Object>
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

Methods

build() Host
Run the given actions to initialize the host. This can only be called once.
configureAppConfiguration(ConfigureAppConfigurationDelegate configureDelegate) HostBuilder
Sets up the configuration for the remainder of the build process and application. This can be called multiple times and the results will be additive. The results will be available at Configuration for subsequent operations, as well as in services.
configureContainer<TContainerBuilder>(ConfigureContainerAdapterDelegate<TContainerBuilder> configureDelegate) HostBuilder
Enables configuring the instantiated dependency container. This can be called multiple times and the results will be additive.
configureHostConfiguration(ConfigureHostConfigurationDelegate configureDelegate) HostBuilder
Set up the configuration for the builder itself. This will be used to initialize the HostEnvironment for use later in the build process. This can be called multiple times and the results will be additive.
configureServices(ConfigureServicesDelegate configureDelegate) HostBuilder
Adds services to the container. This can be called multiple times and the results will be additive.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
useServiceProviderFactory<TContainerBuilder>({ServiceProviderFactory<TContainerBuilder>? implementation, FactoryResolver<TContainerBuilder>? factory}) HostBuilder
Overrides the factory used to create the service provider.

Operators

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