Exemple #1
0
        public CommandReply ExecuteCommandAsynchronous(EcsCommand command, string[] parameterNames, object[] parameterValues, long closure, int transactionId)
        {
            ObjParameterData[] replyParams = new ObjParameterData[parameterNames.Length];
            for (int i = 0; i < parameterNames.Length; i++)
            {
                replyParams[i] = new ObjParameterData(parameterNames[i], parameterValues[i]);
            }

            HostRemoteCommandArg arg = new HostRemoteCommandArg(transactionId, 2, 41, closure, command.CommandName);

            for (int i = 0; i < parameterNames.Length; i++)
            {
                arg.SetCPVal(parameterNames[i], parameterValues[i].ToString());
            }

            OnChangeControl?.BeginInvoke(this, new ControlArg("RemoteCommand", arg, replyParams), null, null);

            ////Test
            //arg.SetHcAck(1);
            //RspRemoteCommandToHost(arg, replyParams);
            ////Test

            return(null);
        }
Exemple #2
0
 public CommandReply ExecuteCommandSynchronous(EcsCommand commandName, string[] parameterNames, object[] parameterValues, long closure)
 {
     throw new NotImplementedException();
 }