protected virtual ClientMessage Invoke(ClientMessage request) { var rpc = Proxy.GetClient().InvocationService; try { var task = rpc.InvokeOnConnection(request, Proxy.TxnConnection); return(ThreadUtil.GetResult(task)); } catch (Exception e) { throw ExceptionUtil.Rethrow(e, exception => new TransactionException(exception)); } }
protected virtual IClientMessage Invoke(IClientMessage request) { var rpc = Proxy.GetClient().GetInvocationService(); try { var task = rpc.InvokeOnMember(request, Proxy.TxnOwnerNode); return(ThreadUtil.GetResult(task)); } catch (Exception e) { throw ExceptionUtil.Rethrow(e); } }