IDmtpRouterPackageActorRequestAsync(Type, DmtpRouterPackage, CancellationToken) 方法
请求一个路由包,并等待响应。
命名空间: TouchSocket.Dmtp.RouterPackage程序集: TouchSocketPro.Dmtp (在 TouchSocketPro.Dmtp.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
Task<DmtpRouterPackage> RequestAsync(
Type packageType,
DmtpRouterPackage package,
CancellationToken cancellationToken
)
Function RequestAsync (
packageType As Type,
package As DmtpRouterPackage,
cancellationToken As CancellationToken
) As Task(Of DmtpRouterPackage)
abstract RequestAsync :
packageType : Type *
package : DmtpRouterPackage *
cancellationToken : CancellationToken -> Task<DmtpRouterPackage>
- packageType Type
- 响应包类型
- package DmtpRouterPackage
- 请求的路由包
- cancellationToken CancellationToken
- 可取消令箭
TaskDmtpRouterPackage返回的响应包