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
97
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications.
63
Microsoft.Azure.Functions.Worker.Grpc
This library provides gRPC support for Azure Functions .NET Worker communication with the Azure Functions Host.
58
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.
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.
53
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.
50
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications.
47
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
47
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
46
Marten
.NET Transactional Document DB and Event Store on PostgreSQL
45
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
41
App.Metrics.Extensions.Collectors
Metric/Event Collectors for App Metrics e.g. System Usage, GC Events
40
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.
40
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
40
Microsoft.AspNetCore.App
Microsoft.AspNetCore.App
39
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
39
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
37
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.
36
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
36
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
36

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