Compartir a través de


HostingAbstractionsWebHostBuilderExtensions.UseShutdownTimeout Método

Definición

Especifique la cantidad de tiempo que se va a esperar a que se cierre el host web.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseShutdownTimeout(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, TimeSpan timeout);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseShutdownTimeout (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, TimeSpan timeout);
static member UseShutdownTimeout : Microsoft.AspNetCore.Hosting.IWebHostBuilder * TimeSpan -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseShutdownTimeout (hostBuilder As IWebHostBuilder, timeout As TimeSpan) As IWebHostBuilder

Parámetros

hostBuilder
IWebHostBuilder

El objeto IWebHostBuilder que se va a configurar.

timeout
TimeSpan

Cantidad de tiempo que se va a esperar al apagado del servidor.

Devoluciones

IWebHostBuilder.

Se aplica a