diff --git a/src/Holon/Holon.csproj b/src/Holon/Holon.csproj index 34cc81d..6cef4bd 100644 --- a/src/Holon/Holon.csproj +++ b/src/Holon/Holon.csproj @@ -2,7 +2,7 @@ netstandard1.6 - 0.1.9 + 0.2.0 Alan Doherty Alan Doherty A minimal service and event bus with additional support for RPC @@ -10,11 +10,11 @@ https://github.com/alandoherty/holon-net https://github.com/alandoherty/holon-net git - 0.1.9.0 + 0.2.0.0 https://github.com/alandoherty/holon-net/blob/master/LICENSE true https://s3-eu-west-1.amazonaws.com/assets.alandoherty.co.uk/github/holon-net-nuget.png - 0.1.9.0 + 0.2.0.0 diff --git a/src/Holon/Remoting/RpcBehaviour.cs b/src/Holon/Remoting/RpcBehaviour.cs index 2f112b4..a9eee01 100644 --- a/src/Holon/Remoting/RpcBehaviour.cs +++ b/src/Holon/Remoting/RpcBehaviour.cs @@ -228,7 +228,7 @@ private async Task 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]); } } diff --git a/src/Holon/Remoting/RpcResponse.cs b/src/Holon/Remoting/RpcResponse.cs index c4422e1..8a89b98 100644 --- a/src/Holon/Remoting/RpcResponse.cs +++ b/src/Holon/Remoting/RpcResponse.cs @@ -61,6 +61,7 @@ public bool IsSuccess { /// The data type. internal RpcResponse(object data, Type type) { _data = data; + _dataType = type; _error = null; }