Microsoft.Extensions.Hosting.Abstractions 9.0.4

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
MassTransit.AspNetCore
MassTransit hosting for ASP.NET Core; MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com
666
MassTransit.Extensions.Hosting
MassTransit configuration extensions using Microsoft.Extensions.Hosting.IHostedService and Microsoft.Extensions.DependencyInjection.
125
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
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/dotnet/aspnetcore/tree/98a853b20131fd59b37076dd3699d8c7f62b24cb
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/d6f154cca3863703cf87c8b840eea9cbe20229b2
51
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
73
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.Diagnostics.HealthChecks
Components for performing health checks in .NET applications Commonly Used Types: Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckService Microsoft.Extensions.Diagnostics.HealthChecks.IHealthChecksBuilder
259
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/330c2397160929d6d3275ade03cee436265258e8
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 This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/432e6a061f28dda696ba16bc5442328d23b25d93
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 This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/d0ca5a8d20ac50a33d5451e998a5d411a810c8d7
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 This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/f050ae044be8bddc002ab88736e4bf78dc822122
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 This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/ffaea14b06ea8b247fa4894b7d21ecf6da2cafbc
51
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
50
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
50
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
51
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
52
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
82
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
108
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
128

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