Udostępnij za pośrednictwem


HostingAbstractionsWebHostBuilderExtensions.UseShutdownTimeout Metoda

Definicja

Określ czas oczekiwania na zamknięcie hosta internetowego.

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

Parametry

hostBuilder
IWebHostBuilder

Element do skonfigurowania IWebHostBuilder .

timeout
TimeSpan

Czas oczekiwania na zamknięcie serwera.

Zwraca

Element IWebHostBuilder.

Dotyczy