Microsoft.Extensions.Hosting.Abstractions 9.0.11
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 |
|---|---|
|
OpenTelemetry.Extensions.Hosting
Contains extensions to start OpenTelemetry in applications using Microsoft.Extensions.Hosting
|
135 |
|
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
|
134 |
|
OpenTelemetry.Extensions.Hosting
Contains extensions to start OpenTelemetry in applications using Microsoft.Extensions.Hosting
|
4 |
|
Microsoft.Extensions.DependencyInjection.AutoActivation
Extensions to auto-activate registered singletons in the dependency injection system.
|
4 |
|
Microsoft.Extensions.AmbientMetadata.Application
Runtime information provider for application-level ambient metadata.
|
4 |
|
Microsoft.FluentUI.AspNetCore.Components
A set of Blazor components wrapping Microsoft’s official Fluent UI Web Components. They implement the latest state of the Fluent design language, are built on FAST and work in every major browser.
|
2 |
|
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
|
2 |
|
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
2 |
|
Aspire.Hosting
Core abstractions for the .NET Aspire application model.
|
2 |
|
Microsoft.Extensions.Diagnostics.HealthChecks
Components for performing health checks in .NET applications
Commonly Used Types:
Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckService
Microsoft.Extensions.Diagnostics.HealthChecks.IHealthChecksBuilder
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/ff66c263be7ed395794bdaf616322977b8ec897c
|
2 |
|
Hangfire.NetCore
.NET Core's Worker Service host support for Hangfire (background job system for ASP.NET applications).
|
1 |
|
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
|
1 |
|
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
1 |
|
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core.
This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
|
1 |
|
Aspire.Hosting
Core abstractions for the Aspire application model.
|
1 |
|
Microsoft.AspNetCore.DataProtection
ASP.NET Core logic to protect and unprotect data, similar to DPAPI.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/68bb6fb08f8f85bb3cf08953a0d2f4a254eaccff
|
1 |
|
Microsoft.AspNetCore.DataProtection
ASP.NET Core logic to protect and unprotect data, similar to DPAPI.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/ab1f1c636afa3a6607f2d67bc387b586596d1d38
|
1 |
|
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
|
1 |
.NET Framework 4.6.2
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.11)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 9.0.11)
- Microsoft.Extensions.FileProviders.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.11)
- System.Threading.Tasks.Extensions (>= 4.5.4)
.NET 8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 9.0.11)
- Microsoft.Extensions.FileProviders.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.11)
.NET 9.0
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 9.0.11)
- Microsoft.Extensions.FileProviders.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.11)
.NET Standard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.11)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 9.0.11)
- Microsoft.Extensions.FileProviders.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.11)
- System.Threading.Tasks.Extensions (>= 4.5.4)
.NET Standard 2.1
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 9.0.11)
- Microsoft.Extensions.FileProviders.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.11)
| Version | Downloads | Last updated |
|---|---|---|
| 9.0.11 | 129 | 12/19/2025 |
| 9.0.9 | 4 | 12/20/2025 |
| 9.0.0 | 136 | 12/19/2025 |
| 8.0.1 | 2 | 12/21/2025 |
| 8.0.0-rc.2.23479.6 | 1 | 12/20/2025 |
| 6.0.0-rc.2.21480.5 | 1 | 12/19/2025 |
| 3.1.5 | 1 | 12/20/2025 |