SystemdLifetime 클래스

정의

애플리케이션 시작 및 중지에 대한 알림 메시지를 제공하고 시스템 형식으로 콘솔 로깅을 구성합니다.

public ref 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")]
public class SystemdLifetime : IDisposable, Microsoft.Extensions.Hosting.IHostLifetime
type SystemdLifetime = class
    interface IHostLifetime
    interface IDisposable
[<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
Public Class SystemdLifetime
Implements IDisposable, IHostLifetime
상속
SystemdLifetime
특성
구현

생성자

SystemdLifetime(IHostEnvironment, IHostApplicationLifetime, ISystemdNotifier, ILoggerFactory)

SystemdLifetime 인스턴스를 초기화합니다.

메서드

Dispose()

관리되지 않는 리소스의 확보, 해제 또는 다시 설정과 관련된 애플리케이션 정의 작업을 수행합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
StopAsync(CancellationToken)

비동기적으로 중지하고 호스트를 종료합니다. 이 메서드는 StopAsync(CancellationToken)에서 호출됩니다.

ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)
WaitForStartAsync(CancellationToken)

계속하기 전에 시작 작업이 완료될 때까지 비동기적으로 대기합니다. 이 메서드는 StartAsync(CancellationToken)의 시작 부분에서 호출됩니다. 이는 외부 이벤트에서 신호를 보낼 때까지 시작을 지연시키는 데 사용할 수 있습니다.

적용 대상