void InternalExecute() { var visitor = new RpcCallVisitor(); var visited = visitor.Serialize(_call); var result = _service.InvokeRemote(visited); RpcEvaluator.HandleResult(result, _service.ResolveReference); }
async Task InternalExecuteAsync() { var visitor = new RpcCallVisitor(); var visited = visitor.Serialize(_call); var result = await _serviceAsync .InvokeRemoteAsync(visited) .ConfigureAwait(_continueOnCapturedContext); await RpcEvaluator .HandleResultAsync(result, _serviceAsync.ResolveReferenceAsync) .ConfigureAwait(_continueOnCapturedContext); }