public static Task<ResponsedData> SendThenResponseAsync<TClient, TResult>(
this IWaitingClient<TClient, TResult> client,
string msg,
CancellationToken token
)
where TClient : Object, IReceiverClient<TResult>, ISender, IRequestInfoSender
where TResult : IReceiverResult
<ExtensionAttribute>
Public Shared Function SendThenResponseAsync(Of TClient As {Object, IReceiverClient(Of TResult), ISender, IRequestInfoSender}, TResult As IReceiverResult) (
client As IWaitingClient(Of TClient, TResult),
msg As String,
token As CancellationToken
) As Task(Of ResponsedData)
[<ExtensionAttribute>]
static member SendThenResponseAsync :
client : IWaitingClient<'TClient, 'TResult> *
msg : string *
token : CancellationToken -> Task<ResponsedData> when 'TClient : Object and IReceiverClient<'TResult> and ISender and IRequestInfoSender when 'TResult : IReceiverResult
[缺少 "M:TouchSocket.Sockets.WaitingClientExtension.SendThenResponseAsync``2(TouchSocket.Sockets.IWaitingClient{``0,``1},System.String,System.Threading.CancellationToken)" 的 <typeparam name="TClient"/> 文档]
[缺少 "M:TouchSocket.Sockets.WaitingClientExtension.SendThenResponseAsync``2(TouchSocket.Sockets.IWaitingClient{``0,``1},System.String,System.Threading.CancellationToken)" 的 <typeparam name="TResult"/> 文档]
ClientNotConnectedException | 客户端没有连接 |
OverlengthException | 发送数据超长 |
Exception | 其他异常 |