SystemdHostBuilderExtensions Class

Definition

Extension methods for setting up SystemdLifetime.

C#
public static class SystemdHostBuilderExtensions
Inheritance
SystemdHostBuilderExtensions

Methods

AddSystemd(IServiceCollection)

Configures the lifetime of the IHost built from services to SystemdLifetime, provides notification messages for application started and stopping, and configures console logging to the systemd format.

UseSystemd(IHostBuilder)

Configures the IHost lifetime to SystemdLifetime, provides notification messages for application started and stopping, and configures console logging to the systemd format.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Standard 2.1 (package-provided)