Share via


HubConnection.StopAsync(CancellationToken) Metodo

Definizione

Arresta una connessione al 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

Parametri

cancellationToken
CancellationToken

Token da monitorare per le richieste di annullamento. Il valore predefinito è None.

Restituisce

Oggetto Task che rappresenta l'arresto asincrono.

Si applica a