Bagikan melalui


DefaultHubLifetimeManager<THub>.SendGroupsAsync Metode

Definisi

Mengirim pesan pemanggilan ke grup yang ditentukan.

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

Parameter

groupNames
IReadOnlyList<String>

Nama grup.

methodName
String

Nama metode pemanggilan.

args
Object[]

Argumen pemanggilan.

cancellationToken
CancellationToken

Token yang akan dipantau untuk permintaan pembatalan. Nilai defaultnya adalah None.

Mengembalikan

Task yang mewakili pengiriman asinkron.

Berlaku untuk