Partager via


HostingAbstractionsWebHostBuilderExtensions.UseShutdownTimeout Méthode

Définition

Spécifiez la durée d’attente de l’arrêt de l’hôte 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

Paramètres

hostBuilder
IWebHostBuilder

IWebHostBuilder à configurer.

timeout
TimeSpan

Durée d’attente de l’arrêt du serveur.

Retours

L’IWebHostBuilderopérateur

S’applique à