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

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
42
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
41
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
37
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
37
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
37
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
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/67e04394e98d5bfa6a5684d471a72fcbe30fd587
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/68bb6fb08f8f85bb3cf08953a0d2f4a254eaccff
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/440dadc05b2bed38e6a726c2492db90e77d43c62
36
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
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/6a01dd1e69c8b9bd1ae005ea465ef2bcd26294bf
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/32e8c8cae5b1a4dd752d0a42a6f8a2813f75f173
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/1dcf7acfacf0fe154adcc23270cb0da11ff44ace
35
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
35
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
35
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
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/d47e49e9c1e173ac90821f7e89cc38e710274241
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/e77cb01b5529c137130757859f09f892dbdd2436
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/aspnet/AspNetCore/tree/21d42143378ad6cc4bcbaebfda5f3acddf13aa47
34

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