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

WebSocketDmtpServiceResetIdAsync 方法

异步重置客户端标识符。

Definition

命名空间: TouchSocket.Dmtp.AspNetCore
程序集: TouchSocket.AspNetCore (在 TouchSocket.AspNetCore.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public override Task ResetIdAsync(
	string sourceId,
	string targetId
)

参数

sourceId  String
源客户端标识符。
targetId  String
目标客户端标识符。

返回值

Task

[缺少 "M:TouchSocket.Dmtp.AspNetCore.WebSocketDmtpService.ResetIdAsync(System.String,System.String)" 的 <returns> 文档]

实现

IConnectableServiceResetIdAsync(String, String)
IConnectableServiceResetIdAsync(String, String)

异常

ArgumentException抛出异常,如果sourceId或targetId为空。
ClientNotFindException抛出异常,如果源客户端不存在。

参见