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