Compartir a través de


DefaultHubLifetimeManager<THub>.SendConnectionsAsync Método

Definición

Envía un mensaje de invocación a las conexiones especificadas.

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

Parámetros

connectionIds
IReadOnlyList<String>

Identificadores de conexión.

methodName
String

Nombre del método de invocación.

args
Object[]

Argumentos de invocación.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

Task que representa el envío asincrónico.

Se aplica a