HubConnection.StopAsync(CancellationToken) Methode

Definition

Beendet eine Verbindung mit dem Server.

public System.Threading.Tasks.Task StopAsync (System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task StopAsync (System.Threading.CancellationToken cancellationToken = default);
member this.StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
abstract member StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StopAsync (Optional cancellationToken As CancellationToken = Nothing) As Task
Public Overridable Function StopAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

Parameter

cancellationToken
CancellationToken

Das Token zum Überwachen von Abbruchanforderungen. Der Standardwert ist None.

Gibt zurück

Eine Task , die den asynchronen Stopp darstellt.

Gilt für: