HostApplicationBuilder class
A builder for hosted applications and services which helps manage configuration, logging, lifetime and more.
Constructors
- HostApplicationBuilder.new({HostApplicationBuilderSettings? settings})
Properties
- configuration → ConfigurationManager
-
A collection of services for the application to compose. This is useful
for adding user provided or framework provided services.
no setter
- environment → HostEnvironment
-
Provides information about the hosting environment an application is
running in.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- logging → LoggingBuilder
-
A collection of logging providers for the application to compose. This is
useful for adding new logging providers.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- services → ServiceCollection
-
A collection of services for the application to compose. This is useful
for adding user provided or framework provided services.
no setter
Methods
-
asHostBuilder(
) → HostBuilder -
build(
) → Host - Build the host. This can only be called once.
-
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