Bagikan melalui


WebHostExtensions.WaitForShutdown(IWebHost) Metode

Definisi

Blokir utas panggilan hingga matikan dipicu melalui Ctrl+C atau 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)

Parameter

host
IWebHost

Yang sedang berjalan IWebHost.

Berlaku untuk