HostBuilderAdapter class

Implemented types
Available extensions

Constructors

HostBuilderAdapter(HostApplicationBuilder hostApplicationBuilder)

Properties

hashCode int
The hash code for this object.
no setterinherited
properties Map<Object, Object>
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyChanges() → void
build() Host
override
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 HostBuilderContext.configuration for subsequent operations, as well as in Host.services.
override
configureContainer<TContainerBuilder>(ConfigureContainerAdapterDelegate<TContainerBuilder> configureDelegate) HostBuilder
override
configureDefaults([List<String>? args]) HostBuilder

Available on HostBuilder, provided by the HostingHostBuilderExtensions extension

Configures an existing HostBuilder instance with pre-configured defaults.
configureHostConfiguration(ConfigureHostConfigurationDelegate configureDelegate) HostBuilder
override
configureHostOptions(void configureOptions(HostBuilderContext context, HostOptions options)) HostBuilder

Available on HostBuilder, provided by the HostingHostBuilderExtensions extension

Adds a delegate for configuring the HostOptions of the Host.
configureLogging(void configure(HostBuilderContext context, LoggingBuilder logging)) HostBuilder

Available on HostBuilder, provided by the HostingHostBuilderExtensions extension

Adds a delegate for configuring the provided LoggingBuilder. This can be called multiple times.
configureServices(ConfigureServicesDelegate configureDelegate) HostBuilder
override
createDefaultServiceProviderOptions(HostBuilderContext context) ServiceProviderOptions

Available on HostBuilder, provided by the HostingHostBuilderExtensions extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start({CancellationToken? cancellationToken}) Future<Host>

Available on HostBuilder, provided by the HostingAbstractionsHostBuilderExtensions extension

Builds and starts the host.
toString() String
A string representation of this object.
inherited
useContentRoot(String contentRoot) HostBuilder

Available on HostBuilder, provided by the HostingHostBuilderExtensions extension

Specifies the content root directory to be used by the host.
useDefaultServiceProvider(ConfigureDefaultServiceProvider configure) HostBuilder

Available on HostBuilder, provided by the HostingHostBuilderExtensions extension

Specify the ServiceProvider to be the default one.
useEnvironment(String environment) HostBuilder

Available on HostBuilder, provided by the HostingHostBuilderExtensions extension

Specify the environment to be used by the host.
useServiceProviderFactory<TContainerBuilder>({ServiceProviderFactory<TContainerBuilder>? implementation, FactoryResolver<TContainerBuilder>? factory}) HostBuilder
override

Operators

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