HostingAbstractionsHostExtensions.StopAsync(IHost, TimeSpan) HostingAbstractionsHostExtensions.StopAsync(IHost, TimeSpan) HostingAbstractionsHostExtensions.StopAsync(IHost, TimeSpan) Method

Definition

Attempts to gracefully stop the host with the given timeout.

public static System.Threading.Tasks.Task StopAsync (this Microsoft.Extensions.Hosting.IHost host, TimeSpan timeout);
static member StopAsync : Microsoft.Extensions.Hosting.IHost * TimeSpan -> System.Threading.Tasks.Task
<Extension()>
Public Function StopAsync (host As IHost, timeout As TimeSpan) As Task

Parameters

timeout
TimeSpan TimeSpan TimeSpan

The timeout for stopping gracefully. Once expired the server may terminate any remaining active connections.

Returns

Applies to