Microsoft.Extensions.Hosting.Abstractions 9.0.2

About

Contains abstractions to host user code in an application by encapsulating an application's resources and lifetime functionality including:

  • Dependency injection (DI).
  • Logging.
  • Configuration.
  • Starting, stopping and obtaining notifications.

This package is also used to wire up specific application models like ASP.NET Core that are built on top of hosting.

Key Features

  • Provides the BackgroundService base class and the IHostedService interface for implementing worker services.
  • Provides interfaces used to configure and start\stop a host.
  • Provides types to obtain environment settings such as an application name and paths.

How to Use

See the Conceptual documentation below for using BackgroundService and IHostedService to host worker services.

Main Types

The main types provided by this library are:

  • Microsoft.Extensions.Hosting.BackgroundService
  • Microsoft.Extensions.Hosting.IHostBuilder
  • Microsoft.Extensions.Hosting.IHostedService

Additional Documentation

  • Microsoft.Extensions.Hosting
  • Microsoft.Extensions.Configuration.Abstractions
  • Microsoft.Extensions.DependencyInjection.Abstractions
  • Microsoft.Extensions.Diagnostics.Abstractions
  • Microsoft.Extensions.FileProviders.Abstractions
  • Microsoft.Extensions.Logging.Abstractions

Feedback & Contributing

Microsoft.Extensions.Hosting.Abstractions is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Showing the top 20 packages that depend on Microsoft.Extensions.Hosting.Abstractions.

Packages Downloads
Elsa.Core
Elsa is a set of workflow libraries and tools that enable lean and mean workflowing capabilities in any .NET Core application. This package contains the core of Elsa. Tip: reference the `Elsa` package instead of this one.
10
Microsoft.Azure.Functions.Worker.Core
This library provides the core functionality to build an Azure Functions .NET Worker, adding support for the isolated, out-of-process execution model.
9
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
9
Microsoft.Azure.Functions.Worker
This library enables you to create an Azure Functions .NET Worker, adding support for the isolated, out-of-process execution model.
8
Microsoft.Azure.Functions.Worker.Core
This library provides the core functionality to build an Azure Functions .NET Worker, adding support for the isolated, out-of-process execution model.
8

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

.NET Standard 2.1

.NET Standard 2.0

.NET 9.0

.NET 8.0

Version Downloads Last updated
9.0.2 4 07/12/2025
9.0.0-rc.2.24473.5 4 07/10/2025
9.0.0-preview.3.24172.9 6 07/09/2025
9.0.0-preview.2.24128.5 6 07/11/2025
8.0.0-rc.1.23419.4 4 07/13/2025
8.0.0-preview.3.23174.8 6 07/11/2025
8.0.0-preview.1.23110.8 5 07/08/2025
7.0.0-preview.5.22301.12 5 07/12/2025
6.0.2-mauipre.1.22054.8 5 07/11/2025
6.0.0-preview.5.21301.5 5 07/10/2025
5.0.0-preview.8.20407.11 5 07/12/2025
5.0.0-preview.7.20364.11 6 07/12/2025
5.0.0-preview.1.20120.4 6 07/11/2025
3.1.31 4 07/10/2025
3.1.30 4 07/10/2025
3.1.19 4 07/09/2025
3.1.15 5 07/11/2025
3.1.14 5 07/11/2025
3.1.9 5 07/13/2025
3.1.1 5 07/12/2025
3.0.3 4 07/11/2025
3.0.1 4 07/11/2025