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
BackgroundServicebase class and theIHostedServiceinterface 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.BackgroundServiceMicrosoft.Extensions.Hosting.IHostBuilderMicrosoft.Extensions.Hosting.IHostedService
Additional Documentation
- Conceptual documentation
- API documentation
Related Packages
Microsoft.Extensions.HostingMicrosoft.Extensions.Configuration.AbstractionsMicrosoft.Extensions.DependencyInjection.AbstractionsMicrosoft.Extensions.Diagnostics.AbstractionsMicrosoft.Extensions.FileProviders.AbstractionsMicrosoft.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
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.2)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 9.0.2)
- Microsoft.Extensions.FileProviders.Abstractions (>= 9.0.2)
- System.Threading.Tasks.Extensions (>= 4.5.4)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.2)
.NET Standard 2.1
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.2)
- Microsoft.Extensions.FileProviders.Abstractions (>= 9.0.2)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 9.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.2)
.NET Standard 2.0
- System.Threading.Tasks.Extensions (>= 4.5.4)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.2)
- Microsoft.Extensions.FileProviders.Abstractions (>= 9.0.2)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 9.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.2)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.2)
.NET 9.0
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.2)
- Microsoft.Extensions.FileProviders.Abstractions (>= 9.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.2)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 9.0.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.2)
.NET 8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.2)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 9.0.2)
- Microsoft.Extensions.FileProviders.Abstractions (>= 9.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.2)
| 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 |