Microsoft.Extensions.Hosting.Abstractions 9.0.0

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 BackgroundService base class and the IHostedService interface 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.BackgroundService
  • Microsoft.Extensions.Hosting.IHostBuilder
  • Microsoft.Extensions.Hosting.IHostedService

Additional Documentation

  • Microsoft.Extensions.Hosting
  • Microsoft.Extensions.Configuration.Abstractions
  • Microsoft.Extensions.DependencyInjection.Abstractions
  • Microsoft.Extensions.Diagnostics.Abstractions
  • Microsoft.Extensions.FileProviders.Abstractions
  • Microsoft.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
Aspire.Hosting
Core abstractions for the .NET Aspire application model.
8
Aspire.StackExchange.Redis.OutputCaching
A Redis® implementation for ASP.NET Core Output Caching that integrates with Aspire, including health checks, logging, and telemetry.
7
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/379bfc7b2559e7cc9f42f997a497b2f2dd8e12d2
7
Microsoft.Orleans.Core
Core library of Microsoft Orleans used both on the client and server.
7
Aspire.StackExchange.Redis
A generic Redis® client that integrates with Aspire, including health checks, logging, and telemetry.
6
OpenTelemetry.Extensions.Hosting
Contains extensions to start OpenTelemetry in applications using Microsoft.Extensions.Hosting
6
Microsoft.Extensions.AmbientMetadata.Application
Runtime information provider for application-level ambient metadata.
6
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
5
Microsoft.Orleans.Core
Core library of Microsoft Orleans used both on the client and server.
5
Microsoft.Extensions.AmbientMetadata.Application
Runtime information provider for application-level ambient metadata.
5
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
5
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
5
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
5
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
5
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/215a587e52efa710de84138b0a3374b860b924d8
5
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/ff66c263be7ed395794bdaf616322977b8ec897c
5
Microsoft.Extensions.DependencyInjection.AutoActivation
Extensions to auto-activate registered singletons in the dependency injection system.
5
Ding
Ding是基于.net core平台开发的应用框架中的NetCore核心类库。
4
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
4

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

.NET 8.0

.NET 9.0

.NET Standard 2.0

.NET Standard 2.1

Version Downloads Last updated
10.0.0 3 2025/11/14
10.0.0-rc.2.25502.107 5 2025/10/29
10.0.0-rc.1.25451.107 0 2025/9/9
10.0.0-preview.7.25380.108 1 2025/12/6
10.0.0-preview.6.25358.103 2 2025/7/18
10.0.0-preview.5.25277.114 3 2025/6/17
10.0.0-preview.4.25258.110 0 2025/5/12
10.0.0-preview.3.25171.5 0 2025/4/10
10.0.0-preview.2.25163.2 0 2025/3/18
10.0.0-preview.1.25080.5 0 2025/2/25
9.0.11 4 2025/11/14
9.0.10 3 2025/10/24
9.0.9 3 2025/9/10
9.0.8 6 2025/8/16
9.0.7 5 2025/7/11
9.0.6 7 2025/6/15
9.0.5 0 2025/5/13
9.0.4 0 2025/4/8
9.0.3 1 2025/6/27
9.0.2 0 2025/2/11
9.0.1 0 2025/1/14
9.0.0 2 2025/7/4
9.0.0-rc.2.24473.5 0 2024/10/8
9.0.0-rc.1.24431.7 1 2025/12/6
9.0.0-preview.7.24405.7 0 2024/8/13
9.0.0-preview.6.24327.7 1 2025/12/6
9.0.0-preview.5.24306.7 0 2024/6/11
9.0.0-preview.4.24266.19 0 2024/5/21
9.0.0-preview.3.24172.9 1 2025/12/6
9.0.0-preview.2.24128.5 1 2025/12/6
9.0.0-preview.1.24080.9 0 2024/2/13
8.0.1 3 2025/6/21
8.0.0 5 2025/6/5
8.0.0-rc.2.23479.6 0 2023/10/10
8.0.0-rc.1.23419.4 0 2023/9/12
8.0.0-preview.7.23375.6 0 2023/8/8
8.0.0-preview.6.23329.7 0 2023/7/11
8.0.0-preview.5.23280.8 0 2023/6/13
8.0.0-preview.4.23259.5 1 2025/12/6
8.0.0-preview.3.23174.8 0 2023/4/11
8.0.0-preview.2.23128.3 0 2023/3/14
8.0.0-preview.1.23110.8 0 2023/2/21
7.0.0 1 2025/6/27
7.0.0-rc.2.22472.3 1 2025/12/6
7.0.0-rc.1.22426.10 0 2022/9/14
7.0.0-preview.7.22375.6 0 2022/8/9
7.0.0-preview.6.22324.4 0 2022/7/12
7.0.0-preview.5.22301.12 1 2025/12/6
7.0.0-preview.4.22229.4 0 2022/5/10
7.0.0-preview.3.22175.4 0 2022/4/13
7.0.0-preview.2.22152.2 1 2025/12/6
7.0.0-preview.1.22076.8 1 2025/12/6
6.0.1 2 2025/7/11
6.0.0 2 2025/7/12
6.0.0-rc.2.21480.5 1 2025/12/6
6.0.0-rc.1.21451.13 1 2025/12/6
6.0.0-preview.7.21377.19 1 2025/12/6
6.0.0-preview.6.21352.12 1 2025/12/6
6.0.0-preview.5.21301.5 0 2021/6/15
6.0.0-preview.4.21253.7 1 2025/6/18
6.0.0-preview.3.21201.4 0 2021/4/8
6.0.0-preview.2.21154.6 0 2021/3/11
6.0.0-preview.1.21102.12 0 2021/2/12
5.0.0 2 2025/11/25
5.0.0-rc.2.20475.5 1 2025/12/6
5.0.0-rc.1.20451.14 0 2020/9/14
5.0.0-preview.8.20407.11 0 2020/8/25
5.0.0-preview.7.20364.11 1 2025/6/18
5.0.0-preview.6.20305.6 0 2020/6/25
5.0.0-preview.5.20278.1 0 2020/6/10
5.0.0-preview.4.20251.6 0 2020/5/18
5.0.0-preview.3.20215.2 1 2025/12/6
5.0.0-preview.2.20160.3 0 2020/4/2
5.0.0-preview.1.20120.4 0 2020/3/16
3.1.32 2 2025/11/13
3.1.31 1 2025/12/6
3.1.30 1 2025/12/6
3.1.29 1 2025/12/6
3.1.28 1 2025/12/6
3.1.27 1 2025/12/6
3.1.26 1 2025/12/6
3.1.25 1 2025/12/6
3.1.24 0 2022/4/11
3.1.23 0 2022/3/8
3.1.22 1 2025/12/6
3.1.21 1 2025/12/6
3.1.20 1 2025/12/6
3.1.19 0 2021/9/14
3.1.18 1 2025/12/6
3.1.17 1 2025/12/6
3.1.16 1 2025/12/6
3.1.15 1 2025/12/6
3.1.14 0 2021/4/6
3.1.13 0 2021/3/9
3.1.12 0 2021/2/9
3.1.11 1 2025/12/6
3.1.10 1 2025/12/6
3.1.9 1 2025/12/6
3.1.8 1 2025/6/23
3.1.7 1 2025/12/6
3.1.6 0 2020/7/14
3.1.5 0 2020/6/9
3.1.4 0 2020/5/12
3.1.3 0 2020/3/24
3.1.2 1 2025/12/6
3.1.1 2 2025/12/6
3.1.0 1 2025/12/6
3.1.0-preview3.19553.2 1 2025/6/18
3.1.0-preview2.19525.4 1 2025/6/18
3.1.0-preview1.19506.1 1 2025/6/18
3.0.3 2 2025/8/3
3.0.2 1 2025/12/6
3.0.1 1 2025/12/6
3.0.0 4 2025/7/10
3.0.0-rc1.19456.10 0 2019/9/16
3.0.0-preview9.19423.4 1 2025/6/18
3.0.0-preview8.19405.4 2 2025/6/18
3.0.0-preview7.19362.4 1 2025/6/18
3.0.0-preview6.19304.6 1 2025/6/18
3.0.0-preview5.19227.9 1 2025/6/18
3.0.0-preview4.19216.2 2 2025/6/18
3.0.0-preview3.19153.1 1 2025/6/18
3.0.0-preview.19074.2 0 2019/1/29
3.0.0-preview.18572.1 1 2025/12/6
2.2.0 1 2025/12/6
2.2.0-preview3-35497 1 2025/12/6
2.2.0-preview2-35157 1 2025/12/6
2.2.0-preview1-35029 1 2025/12/6
2.1.1 1 2025/11/21
2.1.0 1 2025/12/6
2.1.0-rc1-final 0 2018/5/6
2.1.0-preview2-final 1 2025/12/6
2.1.0-preview1-final 1 2025/12/6
2.0.3 0 2018/5/7
2.0.2 0 2018/3/13
2.0.1 0 2017/11/14
2.0.0 0 2017/8/11
2.0.0-preview2-final 0 2017/6/28
2.0.0-preview1-final 0 2017/5/10