IHostLifetime 인터페이스

정의

호스트 수명을 추적합니다.

public interface class IHostLifetime
public interface IHostLifetime
type IHostLifetime = interface
Public Interface IHostLifetime
파생

메서드

StopAsync(CancellationToken)

호스트를 중지하고 시스템을 종료할 시간을 나타내기 위해 StopAsync(CancellationToken)에서 호출됩니다.

WaitForStartAsync(CancellationToken)

StartAsync(CancellationToken)의 시작 시 호출되고, 완료될 때까지 기다린 후 계속합니다. 이는 외부 이벤트에서 신호를 보낼 때까지 시작을 지연시키는 데 사용할 수 있습니다.

적용 대상