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 |
|---|---|
|
LiveStreamingServerNet.Networking.Server
This package provides a high-level abstraction of TCP server.
|
7 |
|
LiveStreamingServerNet.Utilities
This package provides common helper classes and utilities for LiveStreamingServerNet.
|
7 |
|
Jering.Javascript.NodeJS
Jering.Javascript.NodeJS enables you to invoke javascript in NodeJS, from C#. With this ability, you can use NodeJS javascript libraries and scripts from C# projects.
|
6 |
|
Hangfire.NetCore
.NET Core's Worker Service host support for Hangfire, a background job framework for .NET applications.
|
5 |
|
Aspire.StackExchange.Redis.OutputCaching
A Redis® implementation for ASP.NET Core Output Caching that integrates with Aspire, including health checks, logging, and telemetry.
|
4 |
|
Aspire.StackExchange.Redis
A generic Redis® client that integrates with Aspire, including health checks, logging, and telemetry.
|
4 |
|
Microsoft.Extensions.AmbientMetadata.Application
Runtime information provider for application-level ambient metadata.
|
4 |
|
Microsoft.Extensions.DependencyInjection.AutoActivation
Extensions to auto-activate registered singletons in the dependency injection system.
|
4 |
|
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/dotnet/tree/89c8f6a112d37d2ea8b77821e56d170a1bccdc5a
|
4 |
|
ModelContextProtocol
.NET SDK for the Model Context Protocol (MCP) with hosting and dependency injection extensions.
|
4 |
|
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/dotnet/tree/c2435c3e0f46de784341ac3ed62863ce77e117b4
|
4 |
|
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/dotnet/tree/fad253f51b461736dfd3cd9c15977bb7493becef
|
3 |
|
Microsoft.Extensions.DependencyInjection.AutoActivation
Extensions to auto-activate registered singletons in the dependency injection system.
|
3 |
|
Microsoft.Extensions.AmbientMetadata.Application
Runtime information provider for application-level ambient metadata.
|
3 |
|
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/dotnet/tree/fad253f51b461736dfd3cd9c15977bb7493becef
|
3 |
|
Microsoft.Maui.Core
.NET Multi-platform App UI (.NET MAUI) is a cross-platform framework for creating native mobile and desktop apps with C# and XAML. This package only contains the core objects used by .NET MAUI. Please install the Microsoft.Maui.Controls package to start using .NET MAUI.
|
3 |
|
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/f736effe82a61eb6f5eba46e4173eae3b7d3dffd
|
3 |
|
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications.
|
3 |
|
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/dotnet/tree/44525024595742ebe09023abe709df51de65009b
|
3 |
https://go.microsoft.com/fwlink/?LinkID=799421
.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)