Condividi tramite


WebHostExtensions.WaitForShutdown(IWebHost) Metodo

Definizione

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

Parametri

host
IWebHost

Oggetto IWebHost in esecuzione.

Si applica a