SystemdLifetime Klas

Definitie

Biedt meldingsberichten voor de toepassing die is gestart en gestopt en configureert consolelogboekregistratie in de systeemindeling.

public ref class SystemdLifetime : IDisposable, Microsoft::Extensions::Hosting::IHostLifetime
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public class SystemdLifetime : IDisposable, Microsoft.Extensions.Hosting.IHostLifetime
public class SystemdLifetime : IDisposable, Microsoft.Extensions.Hosting.IHostLifetime
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("maccatalyst")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
type SystemdLifetime = class
    interface IHostLifetime
    interface IDisposable
type SystemdLifetime = class
    interface IHostLifetime
    interface IDisposable
Public Class SystemdLifetime
Implements IDisposable, IHostLifetime
Overname
SystemdLifetime
Kenmerken
Implementeringen

Constructors

Name Description
SystemdLifetime(IHostEnvironment, IHostApplicationLifetime, ISystemdNotifier, ILoggerFactory)

Initialiseert een nieuw SystemdLifetime exemplaar.

Methoden

Name Description
Dispose()

Voert door de toepassing gedefinieerde taken uit die zijn gekoppeld aan het vrijmaken, vrijgeven of opnieuw instellen van onbeheerde resources.

StopAsync(CancellationToken)

Asynchroon stopt en sluit de host af. Deze methode wordt aangeroepen vanuit StopAsync(CancellationToken).

WaitForStartAsync(CancellationToken)

Wacht asynchroon totdat de startbewerking is voltooid voordat u doorgaat. Deze methode wordt aan het begin van StartAsync(CancellationToken). Dit kan worden gebruikt om het opstarten uit te stellen totdat een externe gebeurtenis wordt gesignaleerd.

Van toepassing op