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

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
27
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
27
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
26
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
25
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
25
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
25
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.
25
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
24
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/dc5e11abdb05b322f4b74b3afbcfb352fe984b2e
24
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/331b52b370cd4e7fe2919d4d4cda27412e2ab1cc
24
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/773e8cc3fbdc2c4ffbd57c1f53f21649ef94c35c
24
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
24
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
24
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
24
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
24
Microsoft.AspNetCore.Hosting
ASP.NET Core hosting infrastructure and startup logic for web applications.
24
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications. This package was built from the source code at https://github.com/aspnet/Hosting/tree/0724e6cde1149ee1a19bfec9c13a2c9327b71213
23
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/a4938d07a5127ffad8466ddf703a6b5b21f4b0c9
23
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/54142bcb25544b72fac28b1b061e7788c91c4f49
23

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