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

Commit

Permalink
Serialization type fix
Browse files Browse the repository at this point in the history
- Fixed situation where types were getting incorrectly serialized
  • Loading branch information
alandoherty committed Feb 18, 2019
1 parent 6db163c commit d7af680
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Holon/Holon.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<Version>0.1.9</Version>
<Version>0.2.0</Version>
<Authors>Alan Doherty</Authors>
<Company>Alan Doherty</Company>
<Description>A minimal service and event bus with additional support for RPC</Description>
<Copyright>BattleCrate Ltd 2018</Copyright>
<PackageProjectUrl>https://github.com/alandoherty/holon-net</PackageProjectUrl>
<RepositoryUrl>https://github.com/alandoherty/holon-net</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<AssemblyVersion>0.1.9.0</AssemblyVersion>
<AssemblyVersion>0.2.0.0</AssemblyVersion>
<PackageLicenseUrl>https://github.com/alandoherty/holon-net/blob/master/LICENSE</PackageLicenseUrl>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageIconUrl>https://s3-eu-west-1.amazonaws.com/assets.alandoherty.co.uk/github/holon-net-nuget.png</PackageIconUrl>
<FileVersion>0.1.9.0</FileVersion>
<FileVersion>0.2.0.0</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
2 changes: 1 addition & 1 deletion src/Holon/Remoting/RpcBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ private async Task<RpcResponse> ApplyRequestAsync(RpcRequest req, MemberInfo mem
// get result
object realRes = methodResult.GetType().GetTypeInfo().GetProperty("Result").GetValue(methodResult);

return new RpcResponse(realRes, operationMethod.ReturnType);
return new RpcResponse(realRes, operationMethod.ReturnType.GetGenericArguments()[0]);
}
}

Expand Down
1 change: 1 addition & 0 deletions src/Holon/Remoting/RpcResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public bool IsSuccess {
/// <param name="type">The data type.</param>
internal RpcResponse(object data, Type type) {
_data = data;
_dataType = type;
_error = null;
}

Expand Down

0 comments on commit d7af680

Please sign in to comment.