HostingAbstractionsHostExtensions.WaitForShutdown(IHost) 메서드

정의

Ctrl+C 또는 SIGTERM을 통해 종료가 트리거될 때까지 호출 스레드를 차단합니다.Block the calling thread until shutdown is triggered via Ctrl+C or SIGTERM.

public:
[System::Runtime::CompilerServices::Extension]
 static void WaitForShutdown(Microsoft::Extensions::Hosting::IHost ^ host);
public static void WaitForShutdown (this Microsoft.Extensions.Hosting.IHost host);
static member WaitForShutdown : Microsoft.Extensions.Hosting.IHost -> unit
<Extension()>
Public Sub WaitForShutdown (host As IHost)

매개 변수

host
IHost

실행 중인 IHost입니다.The running IHost.

적용 대상