共用方式為


DefaultHubLifetimeManager<THub>.SendConnectionAsync 方法

定義

將調用訊息傳送至指定的連接。

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

參數

connectionId
String

連接識別碼。

methodName
String

調用方法名稱。

args
Object[]

調用引數。

cancellationToken
CancellationToken

用來監視是否有取消要求的語彙基元。 預設值是 None

傳回

表示非同步傳送的 Task

適用於