Microsoft.Extensions.Hosting.Abstractions 9.0.0

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
103
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications.
70
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.
70
Microsoft.Azure.Functions.Worker.Grpc
This library provides gRPC support for Azure Functions .NET Worker communication with the Azure Functions Host.
70
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.
62
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.
58
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
55
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications.
54
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
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
52
Marten
.NET Transactional Document DB and Event Store on PostgreSQL
51
Microsoft.AspNetCore.App
Microsoft.AspNetCore.App
51
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.
49
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
47
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
47
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
46
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
46
App.Metrics.Extensions.Collectors
Metric/Event Collectors for App Metrics e.g. System Usage, GC Events
45

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

.NET Standard 2.1

.NET Standard 2.0

.NET 9.0

.NET 8.0

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