DefaultHubLifetimeManager<THub>.SendGroupExceptAsync Method

Definition

Sends an invocation message to the specified group excluding the specified connections.

public override System.Threading.Tasks.Task SendGroupExceptAsync (string groupName, string methodName, object[] args, System.Collections.Generic.IReadOnlyList<string> excludedConnectionIds, System.Threading.CancellationToken cancellationToken = default);
public override System.Threading.Tasks.Task SendGroupExceptAsync (string groupName, string methodName, object?[]? args, System.Collections.Generic.IReadOnlyList<string> excludedConnectionIds, System.Threading.CancellationToken cancellationToken = default);
public override System.Threading.Tasks.Task SendGroupExceptAsync (string groupName, string methodName, object?[] args, System.Collections.Generic.IReadOnlyList<string> excludedConnectionIds, System.Threading.CancellationToken cancellationToken = default);
override this.SendGroupExceptAsync : string * string * obj[] * System.Collections.Generic.IReadOnlyList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function SendGroupExceptAsync (groupName As String, methodName As String, args As Object(), excludedConnectionIds As IReadOnlyList(Of String), Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

groupName
String

The group name.

methodName
String

The invocation method name.

args
Object[]

The invocation arguments.

excludedConnectionIds
IReadOnlyList<String>

A collection of connection IDs to exclude.

cancellationToken
CancellationToken

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

Returns

A Task that represents the asynchronous send.

Applies to