Condividi tramite


HostingAbstractionsHostExtensions.WaitForShutdown(IHost) Metodo

Definizione

Blocca il thread chiamante fino a quando non viene attivato l'arresto tramite CTRL+C o 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)

Parametri

host
IHost

Oggetto IHost in esecuzione.

Si applica a