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

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.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
40
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
40
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/e81033e094d4663ffd227bb4aed30b76b0631e6d
38
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/7c810658463f35c39c54d5fb8a8dbbfd463bf747
36
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
36
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/1bf292d47ac2a0ebda07d8a3f00355dd01915ad5
36
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/e56abc45c4f8adc518abfc11a59849d616431e2c
35
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
35
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
35
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
35
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
34
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
34
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
34
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
34
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
34
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
34
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/d47e49e9c1e173ac90821f7e89cc38e710274241
33
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/e77cb01b5529c137130757859f09f892dbdd2436
33
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
33

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