Esempio n. 1
0
        void InternalExecute()
        {
            var visitor = new RpcCallVisitor();
            var visited = visitor.Serialize(_call);
            var result  = _service.InvokeRemote(visited);

            RpcEvaluator.HandleResult(result, _service.ResolveReference);
        }
Esempio n. 2
0
        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);
        }