IHostApplicationBuilder Interface
Definition
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 that helps manage configuration, logging, and lifetime.
public interface class IHostApplicationBuilder
public interface IHostApplicationBuilder
type IHostApplicationBuilder = interface
Public Interface IHostApplicationBuilder
- Derived
Properties
Configuration |
Gets the set of key/value configuration properties. |
Environment |
Gets 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 |
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
ConfigureContainer<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>, Action<TContainerBuilder>) |
Registers a IServiceProviderFactory<TContainerBuilder> instance to be used to create the IServiceProvider. |
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈