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

适用于