Share via


DefaultHubLifetimeManager<THub>.SendConnectionAsync Metodo

Definizione

Invia un messaggio di chiamata alla connessione specificata.

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

Parametri

connectionId
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