Delen via


HubLifetimeManager<THub>.SendConnectionsAsync Method

Definition

Sends an invocation message to the specified connections.

public abstract System.Threading.Tasks.Task SendConnectionsAsync (System.Collections.Generic.IReadOnlyList<string> connectionIds, string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default);
public abstract System.Threading.Tasks.Task SendConnectionsAsync (System.Collections.Generic.IReadOnlyList<string> connectionIds, string methodName, object?[]? args, System.Threading.CancellationToken cancellationToken = default);
public abstract System.Threading.Tasks.Task SendConnectionsAsync (System.Collections.Generic.IReadOnlyList<string> connectionIds, string methodName, object?[] args, System.Threading.CancellationToken cancellationToken = default);
abstract member SendConnectionsAsync : System.Collections.Generic.IReadOnlyList<string> * string * obj[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function SendConnectionsAsync (connectionIds As IReadOnlyList(Of String), methodName As String, args As Object(), Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

connectionIds
IReadOnlyList<String>

The connection IDs.

methodName
String

The invocation method name.

args
Object[]

The invocation arguments.

cancellationToken
CancellationToken

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

Returns

A Task that represents the asynchronous send.

Applies to