IServer.StopAsync(CancellationToken) Metoda

Definicja

Zatrzymaj przetwarzanie żądań i zamknij serwer, bezpiecznie, jeśli to możliwe.

public:
 System::Threading::Tasks::Task ^ StopAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task StopAsync (System.Threading.CancellationToken cancellationToken);
abstract member StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StopAsync (cancellationToken As CancellationToken) As Task

Parametry

cancellationToken
CancellationToken

Wskazuje, czy ułagodne zamknięcie powinno zostać przerwane.

Zwraca

Dotyczy