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 |
|---|---|
|
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.
|
15 |
|
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.
|
14 |
|
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.
|
14 |
|
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.
|
13 |
|
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
13 |
|
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.
|
12 |
|
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
|
12 |
|
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
12 |
|
Elsa.Core
Elsa is a set of workflow libraries and tools that enable super-fast workflowing capabilities in any .NET Core application.
This package contains the heart and soul of what makes Elsa tick. It implements most of the abstractions defined in Elsa.Abstractions.
If you reference the Elsa package, which is recommended, you don;t have to explicitly reference this package.
|
12 |
|
Microsoft.Azure.Functions.Worker.Grpc
This library provides gRPC support for Azure Functions .NET Worker communication with the Azure Functions Host.
|
11 |
|
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.
|
11 |
|
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
|
11 |
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 | 8 | 07/12/2025 |
| 9.0.0-rc.2.24473.5 | 8 | 07/10/2025 |
| 9.0.0-preview.3.24172.9 | 9 | 07/09/2025 |
| 9.0.0-preview.2.24128.5 | 9 | 07/11/2025 |
| 8.0.0-rc.1.23419.4 | 8 | 07/13/2025 |
| 8.0.0-preview.3.23174.8 | 10 | 07/11/2025 |
| 8.0.0-preview.1.23110.8 | 9 | 07/08/2025 |
| 7.0.0-preview.5.22301.12 | 9 | 07/12/2025 |
| 6.0.2-mauipre.1.22054.8 | 9 | 07/11/2025 |
| 6.0.0-preview.5.21301.5 | 9 | 07/10/2025 |
| 5.0.0-preview.8.20407.11 | 8 | 07/12/2025 |
| 5.0.0-preview.7.20364.11 | 9 | 07/12/2025 |
| 5.0.0-preview.1.20120.4 | 10 | 07/11/2025 |
| 3.1.31 | 8 | 07/10/2025 |
| 3.1.30 | 8 | 07/10/2025 |
| 3.1.19 | 8 | 07/09/2025 |
| 3.1.15 | 8 | 07/11/2025 |
| 3.1.14 | 9 | 07/11/2025 |
| 3.1.9 | 8 | 07/13/2025 |
| 3.1.1 | 8 | 07/12/2025 |
| 3.0.3 | 8 | 07/11/2025 |
| 3.0.1 | 8 | 07/11/2025 |