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.
1,220
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications.
689
Microsoft.AspNetCore.Hosting
ASP.NET Core hosting infrastructure and startup logic for web applications.
360
App.Metrics.Health.Extensions.Hosting
Microsoft.Extensions.Hosting (IHostBuilder) support for App Metrics Health e.g. provide the ability to continuously report health via a Microsoft.Extensions.Hosting.BackgroundService
355
App.Metrics.Extensions.Hosting
Microsoft.Extensions.Hosting (IHostBuilder) support for App Metrics.
341
prometheus-net.SystemMetrics
Export system metrics (CPU usage, disk usage, etc) to Prometheus from your .NET app.
308
OpenTracing.Contrib.NetCore.Unofficial
OpenTracing with AspNetCore
300
Hangfire.NetCore
.NET Core's Worker Service host support for Hangfire, a background job framework for .NET applications.
260
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
258
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
180
Hangfire.NetCore
.NET Core's Worker Service host support for Hangfire, a background job framework for .NET applications.
121
Serilog.Extensions.Hosting
Serilog support for .NET Core logging in hosted services
101
Elastic.Apm.Extensions.Hosting
Elastic APM .NET Agent. This package offers integration with Microsoft.Extensions.Hosting.IHostBuilder for agent registration
94
FeishuNetSdk.WebSocket
适用于飞书开放平台的.Net开发包
33

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 1,054 01/04/2025
8.0.0 1,131 06/03/2024
6.0.0 363 05/31/2024
3.0.0 455 06/13/2024
2.2.0 875 05/31/2024
2.1.1 1,391 05/31/2024
2.1.0 616 06/03/2024