Share via


DefaultHubLifetimeManager<THub>.SendAllExceptAsync 方法

定義

將調用訊息傳送至排除指定連線的所有中樞連線。

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

參數

methodName
String

調用方法名稱。

args
Object[]

調用引數。

excludedConnectionIds
IReadOnlyList<String>

要排除的連接識別碼集合。

cancellationToken
CancellationToken

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

傳回

表示非同步傳送的 Task

適用於