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

DmtpRouterPackageActorRequestAsync(Type, DmtpRouterPackage, CancellationToken) 方法

请求一个路由包,并等待响应。

Definition

命名空间: TouchSocket.Dmtp.RouterPackage
程序集: TouchSocketPro.Dmtp (在 TouchSocketPro.Dmtp.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
C#
public Task<DmtpRouterPackage> RequestAsync(
	Type packageType,
	DmtpRouterPackage package,
	CancellationToken cancellationToken
)

参数

packageType  Type
响应包类型
package  DmtpRouterPackage
请求的路由包
cancellationToken  CancellationToken
可取消令箭

返回值

TaskDmtpRouterPackage
返回的响应包

实现

IDmtpRouterPackageActorRequestAsync(Type, DmtpRouterPackage, CancellationToken)

参见