HostingAbstractionsWebHostBuilderExtensions.UseShutdownTimeout Method

Definition

Specify the amount of time to wait for the web host to shutdown.

C#
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseShutdownTimeout (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, TimeSpan timeout);

Parameters

hostBuilder
IWebHostBuilder

The IWebHostBuilder to configure.

timeout
TimeSpan

The amount of time to wait for server shutdown.

Returns

The IWebHostBuilder.

Applies to

Produk Versi
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0