Partilhar via


HostingAbstractionsHostExtensions.WaitForShutdown(IHost) Método

Definição

Bloqueia 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::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)

Parâmetros

host
IHost

O IHost em execução.

Aplica-se a