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

IDmtpActorSendAsyncTPackage(UInt16, TPackage, CancellationToken) 方法

[缺少 "M:TouchSocket.Dmtp.IDmtpActor.SendAsync``1(System.UInt16,``0,System.Threading.CancellationToken)" 的 <summary> 文档]

Definition

命名空间: TouchSocket.Dmtp
程序集: TouchSocket.Dmtp (在 TouchSocket.Dmtp.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
C#
Task SendAsync<TPackage>(
	ushort protocol,
	TPackage package,
	CancellationToken cancellationToken = default
)
where TPackage : IPackage

参数

protocol  UInt16

[缺少 "M:TouchSocket.Dmtp.IDmtpActor.SendAsync``1(System.UInt16,``0,System.Threading.CancellationToken)" 的 <param name="protocol"/> 文档]

package  TPackage

[缺少 "M:TouchSocket.Dmtp.IDmtpActor.SendAsync``1(System.UInt16,``0,System.Threading.CancellationToken)" 的 <param name="package"/> 文档]

cancellationToken  CancellationToken  (Optional)

[缺少 "M:TouchSocket.Dmtp.IDmtpActor.SendAsync``1(System.UInt16,``0,System.Threading.CancellationToken)" 的 <param name="cancellationToken"/> 文档]

类型参数

TPackage

[缺少 "M:TouchSocket.Dmtp.IDmtpActor.SendAsync``1(System.UInt16,``0,System.Threading.CancellationToken)" 的 <typeparam name="TPackage"/> 文档]

返回值

Task

[缺少 "M:TouchSocket.Dmtp.IDmtpActor.SendAsync``1(System.UInt16,``0,System.Threading.CancellationToken)" 的 <returns> 文档]

参见