TcpClientBaseProtectedSendAsync(IRequestInfo) 方法
异步发送请求信息的受保护方法。
此方法首先检查当前对象是否能够发送请求信息,如果不能,则抛出异常。
如果可以发送,它将使用数据处理适配器来异步发送输入请求。
命名空间: TouchSocket.Sockets程序集: TouchSocket (在 TouchSocket.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
protected Task ProtectedSendAsync(
in IRequestInfo requestInfo
)
Protected Function ProtectedSendAsync (
ByRef requestInfo As IRequestInfo
) As Task
member ProtectedSendAsync :
requestInfo : IRequestInfo byref -> Task
- requestInfo IRequestInfo
- 要发送的请求信息。
Task返回一个任务,该任务代表异步操作的结果。