Microsoft.Extensions.Hosting.Abstractions 10.0.0-preview.4.25258.110

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
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/AspNetCore/tree/be0a4a7f4cf06cbd6ec714bd1d9afee6bdb040a8
32
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/ae2eabad0e49302d0632a7dde917fdc68d960dc4
31
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/aspnet/AspNetCore/tree/67e04394e98d5bfa6a5684d471a72fcbe30fd587
31
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
31
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/e56abc45c4f8adc518abfc11a59849d616431e2c
31
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/6a01dd1e69c8b9bd1ae005ea465ef2bcd26294bf
30
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/3eeb12e106b9e913c3a4dec1a7d16da7b74149eb
30
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/32e8c8cae5b1a4dd752d0a42a6f8a2813f75f173
30
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/aspnet/AspNetCore/tree/440dadc05b2bed38e6a726c2492db90e77d43c62
30
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
30
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/610fe433e07b32ed451ed99d07df63be47c29050
30
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.
30
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/be51b1aa73343e45a1d00afd436abad794f471fb
29
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/aspnet/AspNetCore/tree/21d42143378ad6cc4bcbaebfda5f3acddf13aa47
29
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/c911002ab43b7b989ed67090f2a48d9073d5118d
29
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/1dcf7acfacf0fe154adcc23270cb0da11ff44ace
29
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/bb01bbf4433e27289b99001b7de6a582879d1835
29
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/50b7e9c661453874aa7a54a3985d5120564bb2e5
29
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/55738ff96b832439076e25584cfe0eb3bace9b01
29

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

.NET Framework 4.6.2

.NET 10.0

.NET Standard 2.0

.NET Standard 2.1

.NET 9.0

.NET 8.0

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