Microsoft.Extensions.Hosting.Abstractions 10.0.0-preview.1.25080.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.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
108
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application. 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.
80
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications.
75
Microsoft.Azure.Functions.Worker.Grpc
This library provides gRPC support for Azure Functions .NET Worker communication with the Azure Functions Host.
75
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application. 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.
63
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application. 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.
60
Microsoft.AspNetCore.App
Microsoft.AspNetCore.App
60
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications.
59
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
58
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/Hosting/tree/0724e6cde1149ee1a19bfec9c13a2c9327b71213
58
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
55
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application. 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.
54
Marten
.NET Transactional Document DB and Event Store on PostgreSQL
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
53
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
52
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
52
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application. 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.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
50

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