Compartilhar via


WebHostExtensions.WaitForShutdown(IWebHost) Método

Definição

Bloquear o thread de chamada até que o desligamento seja disparado por meio de Ctrl+C ou 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)

Parâmetros

host
IWebHost

O IWebHost em execução.

Aplica-se a