Microsoft.Extensions.Hosting.Abstractions 10.0.2

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/7c810658463f35c39c54d5fb8a8dbbfd463bf747
60
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/96103c264e5e8f0485d07018ba27b78cd8227dd2
55
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
54
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
54
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
53
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
52
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/432e6a061f28dda696ba16bc5442328d23b25d93
51
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
51
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
51
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
51
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/b908e913e3befcfe241f3294509e6d9570acc07b
51
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
51
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.
51
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
50
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
50
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/2e51a0b6eba74bdf02aee71944e973487937cb99
50
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
50
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/f9ae0f5d30be2de3c0de61b5673bd8873231d70a
49
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
49

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