Condividi tramite


HubLifetimeManager<THub>.SendConnectionsAsync Metodo

Definizione

Invia un messaggio di chiamata alle connessioni specificate.

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

Parametri

connectionIds
IReadOnlyList<String>

ID di connessione.

methodName
String

Nome del metodo di chiamata.

args
Object[]

Argomenti di chiamata.

cancellationToken
CancellationToken

Token da monitorare per le richieste di annullamento. Il valore predefinito è None.

Restituisce

Oggetto Task che rappresenta l'invio asincrono.

Si applica a