Microsoft.Extensions.Hosting.Abstractions 9.0.0-preview.5.24306.7

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
4,102
SkyAPM.Agent.Hosting
SkyAPM ASP.NET Core Agent.
1,390
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
1,315
Hangfire.NetCore
.NET Core's Worker Service host support for Hangfire (background job system for ASP.NET applications).
835
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
812
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
402
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
377
SkyAPM.Agent.Hosting
SkyAPM ASP.NET Core Agent.
349
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications.
288
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/fc93e595ceffbb1e3e85532bf454e92a6a80dd6b
154
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
126
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/e882394a7bb38930da748291fe2c2ceaa6a80588
91
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/d827c653b787c07de908240b7746ce34d3e6271e
71
Hangfire.NetCore
.NET Core's Worker Service host support for Hangfire (background job system for ASP.NET applications).
58
Volo.Abp.Autofac
Package Description
46
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
36
Microsoft.AspNetCore.Hosting
ASP.NET Core hosting infrastructure and startup logic for web applications. This package was built from the source at: https://github.com/aspnet/Hosting/tree/c3edce8e8a19a1e2e58fd21a986271b88071e6ba
32
Volo.Abp.Autofac
Package Description
31
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
30
Microsoft.AspNetCore.Hosting
ASP.NET Core hosting infrastructure and startup logic for web applications.
27

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