Share via


HubConnection.StopAsync(CancellationToken) Method

Definition

Stops a connection to the server.

public virtual System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken = default);

Parameters

cancellationToken
CancellationToken

The token to monitor for cancellation requests. The default value is None.

Returns

A Task that represents the asynchronous stop.

Applies to