Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

Microsoft.Extensions.Hosting.Abstractions

System Library

Author Microsoft
Version 10.0.1
Tags

Public Types

Microsoft.​Extensions.​DependencyInjection

Extension methods for adding hosted services to an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> .

Microsoft.​Extensions.​Hosting

Base class for implementing a long running <see cref="T:Microsoft.Extensions.Hosting.IHostedService" /> .
Commonly used environment names. <para> This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Hosting.Environments. </para>
class Environments
Commonly used environment names.
The exception that is thrown when an <see cref="T:Microsoft.Extensions.Hosting.IHost" /> is stopped to indicate the Host is stopping gracefully. This exception should not be thrown or handled by user code.
Context containing the common services on the <see cref="T:Microsoft.Extensions.Hosting.IHost" /> . Some properties may be null until set by the <see cref="T:Microsoft.Extensions.Hosting.IHost" /> .
class HostDefaults
Constants for HostBuilder configuration keys.
Extension methods for <see cref="T:Microsoft.Extensions.Hosting.IHostEnvironment" /> .
Provides extension methods for the <see cref="T:Microsoft.Extensions.Hosting.IHostBuilder" /> from the hosting abstractions package.
Provides extension methods for the <see cref="T:Microsoft.Extensions.Hosting.IHost" /> from the hosting abstractions package.
Extension methods for <see cref="T:Microsoft.Extensions.Hosting.IHostingEnvironment" /> .
Allows consumers to perform cleanup during a graceful shutdown. <para> This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Hosting.IHostApplicationLifetime. </para>
interface IHost
A program abstraction.
Represents a hosted applications and services builder which helps manage configuration, logging, lifetime, and more.
Allows consumers to be notified of application lifetime events. This interface is not intended to be user-replaceable.
interface IHostBuilder
A program initialization abstraction.
Defines methods that are run before or after <see cref="M:Microsoft.Extensions.Hosting.IHostedService.StartAsync(System.Threading.CancellationToken)" /> and <see cref="M:Microsoft.Extensions.Hosting.IHostedService.StopAsync(System.Threading.CancellationToken)" /> .
interface IHostedService
Defines methods for objects that are managed by the host.
interface IHostEnvironment
Provides information about the hosting environment an application is running in.
Provides information about the hosting environment an application is running in. <para> This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Hosting.IHostEnvironment. </para>
interface IHostLifetime
Tracks host lifetime.