コード例 #1
0
        //VariableInfo resolved;
        public VariableInfo ResolveVariable(VariableReference parent, string name, int threadId, uint dwTimeout)
        {
            CSResolveVariable msg = new CSResolveVariable();

            msg.ThreadHashCode = threadId;
            msg.Variable       = VariableReference.GetMember(name, parent);
            SendResolveVariable(msg);

            bool aborted;
            var  res = AwaitRPCRequest <VariableInfo>(out aborted, (int)dwTimeout);

            if (aborted)
            {
                return(VariableInfo.RequestTimeout);
            }
            return(res);
        }