一款简单易用的基础网络通讯组件库。

IDmtpRelayActorCreateRelayClientAsync 方法

创建并注册中继客户端。

Definition

命名空间: TouchSocket.Dmtp.Relay
程序集: TouchSocketPro.Dmtp (在 TouchSocketPro.Dmtp.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
C#
Task<IRelayClient> CreateRelayClientAsync(
	RelayClientOption config,
	CancellationToken cancellationToken = default
)

参数

config  RelayClientOption
中继客户端配置。
cancellationToken  CancellationToken  (Optional)
取消令牌。

返回值

TaskIRelayClient
已创建的中继客户端实例。

参见