提交 08c1a114 编写于 作者: 若汝棋茗

更新1.2.3

修复Rpc waitsend调用
上级 40944fb2
......@@ -921,13 +921,19 @@ namespace TouchSocket.Rpc.TouchRpc
{
using (ByteBlock returnByteBlock = new ByteBlock())
{
var methodName = rpcPackage.MethodName;
var parametersBytes = rpcPackage.ParametersBytes;
rpcPackage.SwitchId();
rpcPackage.MethodName = default;
rpcPackage.ParametersBytes = default;
rpcPackage.Status = TouchSocketStatus.Success.ToValue();
rpcPackage.Package(returnByteBlock);
Send(TouchRpcUtility.P_1200_Invoke_Response, returnByteBlock);
rpcPackage.SwitchId();
rpcPackage.MethodName = methodName;
rpcPackage.ParametersBytes = parametersBytes;
}
}
......
......@@ -286,7 +286,16 @@ namespace TouchSocket.Rpc.TouchRpc
Send(TouchRpcUtility.P_1000_Handshake_Response, byteBlock);
IsHandshaked = true;
args.Message = "Success";
OnHandshaked?.Invoke(this, args);
ThreadPool.QueueUserWorkItem((o) =>
{
try
{
OnHandshaked?.Invoke(this, args);
}
catch
{
}
}, default);
}
else
{
......
......@@ -4,7 +4,7 @@
<ApplicationIcon>logo.ico</ApplicationIcon>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>D:\MyStore\13_Doc\Keys\TouchSocket.snk</AssemblyOriginatorKeyFile>
<Version>1.2.2</Version>
<Version>1.2.3</Version>
<LangVersion>8.0</LangVersion>
<Company>若汝棋茗</Company>
<Copyright>Copyright © 2023 若汝棋茗</Copyright>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册