HubLifetimeManager<THub>.SendUserAsync 方法

定义

向指定用户发送调用消息。

public abstract System.Threading.Tasks.Task SendUserAsync (string userId, string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default);
public abstract System.Threading.Tasks.Task SendUserAsync (string userId, string methodName, object?[]? args, System.Threading.CancellationToken cancellationToken = default);
public abstract System.Threading.Tasks.Task SendUserAsync (string userId, string methodName, object?[] args, System.Threading.CancellationToken cancellationToken = default);
abstract member SendUserAsync : string * string * obj[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function SendUserAsync (userId As String, methodName As String, args As Object(), Optional cancellationToken As CancellationToken = Nothing) As Task

参数

userId
String

用户 ID。

methodName
String

调用方法名称。

args
Object[]

调用参数。

cancellationToken
CancellationToken

要监视取消请求的标记。 默认值是 None

返回

一个表示异步发送的 Task

适用于