HostingAbstractionsHostExtensions.WaitForShutdown(IHost) Method

Definition

Blocks the calling thread until shutdown is triggered via Ctrl+C or 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)

Parameters

host
IHost

The running IHost.

Applies to