HostingAbstractionsHostExtensions.StopAsync(IHost, TimeSpan) Método

Definición

Intenta detener correctamente el host con el tiempo de espera especificado.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ StopAsync(Microsoft::Extensions::Hosting::IHost ^ host, TimeSpan 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

Parámetros

host
IHost

que IHost se va a detener.

timeout
TimeSpan

Tiempo de espera para detenerse correctamente. Una vez expirado, el servidor puede finalizar las conexiones activas restantes.

Devoluciones

Task que representa la operación asincrónica.

Se aplica a