Microsoft.Extensions.Hosting.Abstractions 9.0.9
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 |
|---|---|
|
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
|
941 |
|
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
753 |
|
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/ed74665e773dd1ebea3289c5662d71c590305932
|
751 |
|
OpenTelemetry.Extensions.Hosting
Contains extensions to start OpenTelemetry in applications using Microsoft.Extensions.Hosting
|
253 |
|
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/47576478939fdd59b4400ad135f47938af486ab3
|
146 |
|
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/31d685b2d9a86ca1243014d175a3da813f78e428
|
119 |
|
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/c83354d42e63d2bb07e6b24b7c67ef91e434f359
|
91 |
|
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
71 |
|
Elastic.Apm.AspNetCore
Elastic APM for ASP.NET Core. This package contains auto instrumentation for ASP.NET Core. See: https://github.com/elastic/apm-agent-dotnet/tree/main/docs
|
68 |
|
Elastic.Apm.Extensions.Hosting
Elastic APM .NET Agent. This package offers integration with Microsoft.Extensions.Hosting.IHostBuilder for agent registration
|
68 |
|
Elastic.Apm.Extensions.Hosting
Elastic APM .NET Agent. This package offers integration with Microsoft.Extensions.Hosting.IHostBuilder for agent registration
|
60 |
|
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications.
|
60 |
|
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/8e941eb42f819adb116b881195158b3887a70a1c
|
60 |
|
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
47 |
|
Elastic.Apm.Extensions.Hosting
Elastic APM .NET Agent. This package offers integration with Microsoft.Extensions.Hosting.IHostBuilder for agent registration
|
44 |
|
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/ae1a6cbe225b99c0bf38b7e31bf60cb653b73a52
|
44 |
|
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
42 |
|
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
|
41 |
|
Quartz.Extensions.Hosting
Quartz.NET Generic Host integration; Quartz Scheduling Framework for .NET
|
19 |
|
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/3f1acb59718cadf111a0a796681e3d3509bb3381
|
19 |
.NET Framework 4.6.2
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.9)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.9)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 9.0.9)
- Microsoft.Extensions.FileProviders.Abstractions (>= 9.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.9)
- System.Threading.Tasks.Extensions (>= 4.5.4)
.NET 8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.9)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 9.0.9)
- Microsoft.Extensions.FileProviders.Abstractions (>= 9.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.9)
.NET 9.0
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.9)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 9.0.9)
- Microsoft.Extensions.FileProviders.Abstractions (>= 9.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.9)
.NET Standard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.9)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.9)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 9.0.9)
- Microsoft.Extensions.FileProviders.Abstractions (>= 9.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.9)
- System.Threading.Tasks.Extensions (>= 4.5.4)
.NET Standard 2.1
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.9)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 9.0.9)
- Microsoft.Extensions.FileProviders.Abstractions (>= 9.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.9)