Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IHostApplicationBuilder Interface

Definition

Namespace:
Microsoft.Extensions.Hosting
Assembly:
Microsoft.Extensions.Hosting.Abstractions.dll
Package:
Microsoft.Extensions.Hosting.Abstractions v11.0.0-preview.5.26302.115
Source:
IHostApplicationBuilder.cs
Source:
IHostApplicationBuilder.cs
Source:
IHostApplicationBuilder.cs
Source:
IHostApplicationBuilder.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public interface class IHostApplicationBuilder
public interface IHostApplicationBuilder
type IHostApplicationBuilder = interface
Public Interface IHostApplicationBuilder
Derived

Properties

Name Description
Configuration

Gets the set of key/value configuration properties.

Environment

Gets the information about the hosting environment an application is running in.

Logging

Gets a collection of logging providers for the application to compose. This is useful for adding new logging providers.

Metrics

Gets a builder that allows enabling metrics and directing their output.

Properties

Gets a central location for sharing state between components during the host building process.

Services

Gets a collection of services for the application to compose. This is useful for adding user provided or framework provided services.

Methods

Name Description
ConfigureContainer<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>, Action<TContainerBuilder>)

Registers a IServiceProviderFactory<TContainerBuilder> instance to be used to create the IServiceProvider.

Applies to


Feedback

Was this page helpful?