HostingAbstractionsHostExtensions.StopAsync(IHost, TimeSpan) Méthode

Définition

Tente d’arrêter normalement l’hôte avec le délai d’attente donné.

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

Paramètres

host
IHost

IHost à arrêter.

timeout
TimeSpan

Délai d’attente pour l’arrêt normal. Une fois le délai expiré, le serveur peut mettre fin à toutes les connexions actives restantes.

Retours

Task qui représente l’opération asynchrone.

S’applique à