HostingAbstractionsHostExtensions.WaitForShutdown(IHost) HostingAbstractionsHostExtensions.WaitForShutdown(IHost) HostingAbstractionsHostExtensions.WaitForShutdown(IHost) Method

Definition

Block the calling thread until shutdown is triggered via Ctrl+C or SIGTERM.

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)

Parameters

host
IHost IHost IHost

The running IHost.

Applies to