Microsoft.Extensions.Hosting.Abstractions 8.0.1

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
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
4,783
Hangfire.NetCore
.NET Core's Worker Service host support for Hangfire, a background job framework for .NET applications.
2,639
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
2,435
DiadocIntegration.EventHubs
Package Description
1,717
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
1,441
OrgStructure
Package Description
632
OrgStructure
Package Description
184
OrgStructure
Package Description
159
OrgStructure
Package Description
136
OrgStructure
Package Description
116
OrgStructure
Package Description
105
OrgStructure
Package Description
77
OrgStructure
Package Description
74
OrgStructure
Package Description
48
OrgStructure
Package Description
32
OrgStructure
Package Description
31
OrgStructure
Package Description
26
OrgStructure
Package Description
17
OrgStructure
Package Description
16
OrgStructure
Package Description
13

.NET Framework 4.6.2

.NET 6.0

.NET 7.0

.NET 8.0

.NET Standard 2.0

.NET Standard 2.1

Version Downloads Last updated
8.0.1 4,817 05/09/2025
8.0.0 4,264 05/09/2025
3.0.0 5,060 05/09/2025
2.2.0 2,298 05/09/2025