共用方式為


WebHostExtensions.WaitForShutdown(IWebHost) 方法

定義

封鎖呼叫執行緒,直到透過 Ctrl+C 或 SIGTERM 觸發關機為止。

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

參數

host
IWebHost

執行中的 IWebHost

適用於