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

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
DotNetCore.CAP
Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern.
924
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
12
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/d4eca39c3fc1944b2c6431bf6b22036bdb176c0d
11
Volo.Abp.Core
Package Description
10
Volo.Abp.Core
Package Description
9
DotNetCore.CAP
Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern.
9
Volo.Abp.Core
Package Description
8

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-preview.3.24172.9 13 2024/5/10
8.0.0 13 2024/2/29
7.0.0 12 2023/7/15
6.0.0 12 2022/7/18
5.0.0 22 2021/9/28
3.1.8 12 2021/10/10
3.1.6 8 2023/3/2
3.1.5 10 2021/10/7
3.1.2 10 2021/10/7
3.1.0 11 2022/9/12
3.0.0 13 2021/11/30
2.2.0 13 2023/2/10
2.1.0 12 2021/9/28
2.0.2 10 2021/10/7
2.0.1 11 2021/10/7
2.0.0 12 2021/9/28