Microsoft.Extensions.Hosting.Abstractions 11.0.0-preview.2.26159.112
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 |
|---|---|
|
Azure.Identity
Provides APIs for authenticating to Microsoft Entra ID
|
62 |
|
OpenTelemetry.Extensions.Hosting
Startup extensions to register OpenTelemetry into the applications using Microsoft.Extensions.DependencyInjection and Microsoft.Extensions.Hosting
|
1 |
|
Microsoft.Extensions.Options.ValidateOnStart
Support for extended option validation.
|
1 |
|
FastEndpoints.JobQueues
Command based background job queueing with scheduling and tracking for any .NET application
|
1 |
|
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
1 |
|
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/aspnet/Extensions/tree/0fca7b48d0d419df0c67de0df4792441f6d5038f
|
1 |
|
Microsoft.AspNetCore.Hosting
ASP.NET Core hosting infrastructure and startup logic for web applications.
This package was built from the source code at https://github.com/aspnet/Hosting/tree/0724e6cde1149ee1a19bfec9c13a2c9327b71213
|
1 |
|
Microsoft.Orleans.Clustering.AzureStorage
Microsoft Orleans clustering provider backed by Azure Table Storage
|
1 |
|
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.
|
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 |
|
Microsoft.Orleans.Runtime.Abstractions
Library with core types shared between silo and extensions.
|
1 |
|
Microsoft.Orleans.OrleansRuntime
Core runtime library of Microsoft Orleans that hosts and executes grains within a silo.
|
1 |
|
Microsoft.Orleans.OrleansRuntime
Core runtime library of Microsoft Orleans that hosts and executes grains within a silo.
|
0 |
.NET Framework 4.6.2
- Microsoft.Bcl.AsyncInterfaces (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.Configuration.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.FileProviders.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.Logging.Abstractions (>= 11.0.0-preview.2.26159.112)
- System.Threading.Tasks.Extensions (>= 4.6.3)
.NET 10.0
- Microsoft.Extensions.Configuration.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.FileProviders.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.Logging.Abstractions (>= 11.0.0-preview.2.26159.112)
.NET 11.0
- Microsoft.Extensions.Configuration.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.FileProviders.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.Logging.Abstractions (>= 11.0.0-preview.2.26159.112)
.NET Standard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.Configuration.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.FileProviders.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.Logging.Abstractions (>= 11.0.0-preview.2.26159.112)
- System.Threading.Tasks.Extensions (>= 4.6.3)
.NET Standard 2.1
- Microsoft.Extensions.Configuration.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.Diagnostics.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.FileProviders.Abstractions (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.Logging.Abstractions (>= 11.0.0-preview.2.26159.112)