Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit d7af680

Browse files
committed
Serialization type fix
- Fixed situation where types were getting incorrectly serialized
1 parent 6db163c commit d7af680

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Holon/Holon.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard1.6</TargetFramework>
5-
<Version>0.1.9</Version>
5+
<Version>0.2.0</Version>
66
<Authors>Alan Doherty</Authors>
77
<Company>Alan Doherty</Company>
88
<Description>A minimal service and event bus with additional support for RPC</Description>
99
<Copyright>BattleCrate Ltd 2018</Copyright>
1010
<PackageProjectUrl>https://github.com/alandoherty/holon-net</PackageProjectUrl>
1111
<RepositoryUrl>https://github.com/alandoherty/holon-net</RepositoryUrl>
1212
<RepositoryType>git</RepositoryType>
13-
<AssemblyVersion>0.1.9.0</AssemblyVersion>
13+
<AssemblyVersion>0.2.0.0</AssemblyVersion>
1414
<PackageLicenseUrl>https://github.com/alandoherty/holon-net/blob/master/LICENSE</PackageLicenseUrl>
1515
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1616
<PackageIconUrl>https://s3-eu-west-1.amazonaws.com/assets.alandoherty.co.uk/github/holon-net-nuget.png</PackageIconUrl>
17-
<FileVersion>0.1.9.0</FileVersion>
17+
<FileVersion>0.2.0.0</FileVersion>
1818
</PropertyGroup>
1919

2020
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

src/Holon/Remoting/RpcBehaviour.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ private async Task<RpcResponse> ApplyRequestAsync(RpcRequest req, MemberInfo mem
228228
// get result
229229
object realRes = methodResult.GetType().GetTypeInfo().GetProperty("Result").GetValue(methodResult);
230230

231-
return new RpcResponse(realRes, operationMethod.ReturnType);
231+
return new RpcResponse(realRes, operationMethod.ReturnType.GetGenericArguments()[0]);
232232
}
233233
}
234234

src/Holon/Remoting/RpcResponse.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public bool IsSuccess {
6161
/// <param name="type">The data type.</param>
6262
internal RpcResponse(object data, Type type) {
6363
_data = data;
64+
_dataType = type;
6465
_error = null;
6566
}
6667

0 commit comments

Comments
 (0)