Пример #1
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);
 }
Пример #2
0
 void InternalExecute()
 {
     var visitor = new RpcCallVisitor();
     var visited = visitor.Serialize(_call);
     var result = _service.InvokeRemote(visited);
     RpcEvaluator.HandleResult(result, _service.ResolveReference);
 }