Bagikan melalui


HostingAbstractionsHostExtensions.WaitForShutdown(IHost) Metode

Definisi

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

Parameter

host
IHost

Yang sedang berjalan IHost.

Berlaku untuk