Microsoft.AspNetCore.Hosting.Abstractions Commonly used environment names. Use the given configuration settings on the web host. The to configure. The containing settings to be used. The . Set whether startup errors should be captured in the configuration settings of the web host. When enabled, startup exceptions will be caught and an error page will be returned. If disabled, startup exceptions will be propagated. The to configure. true to use startup error page; otherwise false. The . Specify the assembly containing the startup type to be used by the web host. The to configure. The name of the assembly containing the startup type. The . Specify the server to be used by the web host. The to configure. The to be used. The . Specify the environment to be used by the web host. The to configure. The environment to host the application in. The . Specify the content root directory to be used by the web host. The to configure. Path to root directory of the application. The . Specify the webroot directory to be used by the web host. The to configure. Path to the root directory used by the web server. The . Specify the urls the web host will listen on. The to configure. The urls the hosted application will listen on. The . Indicate whether the host should listen on the URLs configured on the instead of those configured on the . The to configure. true to prefer URLs configured on the ; otherwise false. The . Specify if startup status messages should be suppressed. The to configure. true to suppress writing of hosting startup status messages; otherwise false. The . Specify the amount of time to wait for the web host to shutdown. The to configure. The amount of time to wait for server shutdown. The . Start the web host and listen on the specified urls. The to start. The urls the hosted application will listen on. The . Extension methods for . Checks if the current hosting environment name is . An instance of . True if the environment name is , otherwise false. Checks if the current hosting environment name is . An instance of . True if the environment name is , otherwise false. Checks if the current hosting environment name is . An instance of . True if the environment name is , otherwise false. Compares the current hosting environment name against the specified value. An instance of . Environment name to validate against. True if the specified name is the same as the current environment, otherwise false. Marker attribute indicating an implementation of that will be loaded and executed when building an . Constructs the with the specified type. A type that implements . The implementation of that should be loaded when starting an application. Allows consumers to perform cleanup during a graceful shutdown. Triggered when the application host has fully started and is about to wait for a graceful shutdown. Triggered when the application host is performing a graceful shutdown. Requests may still be in flight. Shutdown will block until this event completes. Triggered when the application host is performing a graceful shutdown. All requests should be complete at this point. Shutdown will block until this event completes. Requests termination of the current application. Provides information about the web hosting environment an application is running in. Gets or sets the name of the environment. The host automatically sets this property to the value of the "ASPNETCORE_ENVIRONMENT" environment variable, or "environment" as specified in any other configuration source. Gets or sets the name of the application. This property is automatically set by the host to the assembly containing the application entry point. Gets or sets the absolute path to the directory that contains the web-servable application content files. Gets or sets an pointing at . Gets or sets the absolute path to the directory that contains the application content files. Gets or sets an pointing at . Represents platform specific configuration that will be applied to a when building an . Configure the . Configure is intended to be called before user code, allowing a user to overwrite any changes made. This API supports the ASP.NET Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases. This API supports the ASP.NET Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases. Represents a configured web host. The exposed by the configured server. The for the host. Starts listening on the configured addresses. Starts listening on the configured addresses. Attempt to gracefully stop the host. A builder for . Builds an which hosts a web application. Adds a delegate for configuring the that will construct an . The delegate for configuring the that will be used to construct an . The . The and on the are uninitialized at this stage. The is pre-populated with the settings of the . Adds a delegate for configuring additional services for the host or web application. This may be called multiple times. A delegate for configuring the . The . Adds a delegate for configuring additional services for the host or web application. This may be called multiple times. A delegate for configuring the . The . Get the setting value from the configuration. The key of the setting to look up. The value the setting currently contains. Add or replace a setting in the configuration. The key of the setting to add or replace. The value of the setting to add or replace. The . Context containing the common services on the . Some properties may be null until set by the . The initialized by the . The containing the merged configuration of the application and the .