mirror of
https://github.com/RRQM/TouchSocket.git
synced 2025-12-19 18:06:45 +08:00
优化:WebApi接收方式
This commit is contained in:
@@ -56,7 +56,8 @@ namespace RRQMSocket.RPC.WebApi
|
||||
{
|
||||
if (i == 0)
|
||||
{
|
||||
methodInvoker.Parameters[i] = SerializeConvert.XmlDeserializeFromBytes(httpRequest.Body.ToArray(), methodInstance.ParameterTypes[0]);
|
||||
methodInvoker.Parameters[i] = SerializeConvert.XmlDeserializeFromBytes(
|
||||
httpRequest.Encoding.GetBytes(httpRequest.BodyString), methodInstance.ParameterTypes[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -192,7 +192,7 @@ namespace RRQMSocket.RPC.WebApi
|
||||
{
|
||||
socketClient.OnReceived = this.OnReceived;
|
||||
}
|
||||
socketClient.DataHandlingAdapter = new Http.HttpDataHandlingAdapter(this.BufferLength);
|
||||
socketClient.SetDataHandlingAdapter(new Http.HttpDataHandlingAdapter(this.BufferLength, HttpType.Server));
|
||||
}
|
||||
|
||||
private void OnReceived(SimpleSocketClient socketClient, ByteBlock byteBlock, object obj)
|
||||
|
||||
@@ -4,15 +4,14 @@
|
||||
<ApplicationIcon>RRQM.ico</ApplicationIcon>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>RRQM.pfx</AssemblyOriginatorKeyFile>
|
||||
<Version>5.0.0</Version>
|
||||
<Version>5.1.0</Version>
|
||||
<Company>若汝棋茗</Company>
|
||||
<Copyright>Copyright © 2021 若汝棋茗</Copyright>
|
||||
<Description>介绍:这是一个扩展于RRQMSocket.RPC的WebApi组件,可以通过该组件直接创建WebApi服务解析器,让Web端、移动端可以跨语言调用RPC函数。功能支持路由、Get传参、Post传参等。
|
||||
|
||||
RRQMSocket.rPC is a WebAPI component that extends RRQMSocket.rPC. You can directly create a WebAPI service parser through this component, so that the Web end and mobile end can call RPC functions across languages.The function supports routing, GET, POST, etc.
|
||||
|
||||
更新说明:
|
||||
5.0发布
|
||||
优化:接收方式
|
||||
|
||||
Demo:https://gitee.com/RRQM_OS/RRQMBox
|
||||
API:https://gitee.com/RRQM_OS/RRQM/wikis/pages </Description>
|
||||
@@ -66,8 +65,8 @@ API:https://gitee.com/RRQM_OS/RRQM/wikis/pages </Description>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="RRQMSocket.Http" Version="5.0.0" />
|
||||
<PackageReference Include="RRQMSocket.RPC" Version="5.0.2.1" />
|
||||
<PackageReference Include="RRQMSocket.Http" Version="5.1.0" />
|
||||
<PackageReference Include="RRQMSocket.RPC" Version="5.1.1.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user