HubLifetimeManager<THub>.SendConnectionsAsync Méthode

Définition

Envoie un message d’appel aux connexions spécifiées.

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

Paramètres

connectionIds
IReadOnlyList<String>

ID de connexion.

methodName
String

Nom de la méthode d’appel.

args
Object[]

Arguments d’appel.

cancellationToken
CancellationToken

Jeton pour surveiller les requêtes d'annulation. La valeur par défaut est None.

Retours

Task qui représente l'envoi asynchrone.

S’applique à