Share via


DefaultHubLifetimeManager<THub>.AddToGroupAsync Method

Definition

Adds a connection to the specified group.

public override System.Threading.Tasks.Task AddToGroupAsync (string connectionId, string groupName, System.Threading.CancellationToken cancellationToken = default);
override this.AddToGroupAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function AddToGroupAsync (connectionId As String, groupName As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

connectionId
String

The connection ID to add to a group.

groupName
String

The group name.

cancellationToken
CancellationToken

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

Returns

A Task that represents the asynchronous add.

Applies to