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

DmtpActorTryFindDmtpActor 方法

尝试获取指定Id的DmtpActor。一般此方法仅在Service下有效。

Definition

命名空间: TouchSocket.Dmtp
程序集: TouchSocket.Dmtp (在 TouchSocket.Dmtp.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public virtual Task<DmtpActor> TryFindDmtpActor(
	string targetId
)

参数

targetId  String
要查找的DmtpActor的唯一标识符。

返回值

TaskDmtpActor
返回一个包含DmtpActor的任务。如果找不到指定Id的DmtpActor,则返回null。

实现

IDmtpActorTryFindDmtpActor(String)

参见