コード例 #1
0
ファイル: IoController.cs プロジェクト: rcw0125/-
 /// <summary>
 /// 执行命令
 /// </summary>
 /// <param name="pJsonCmd">命令字符串</param>
 /// <returns>真假</returns>
 public bool ExecCommand(string pJsonCmd)
 {
     try
     {
         if (ioc == null)
         {
             ioc = CreateInstance();
         }
         return(ioc.ExecCommand(pJsonCmd));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
ファイル: IoController.cs プロジェクト: rcw0125/-
 /// <summary>
 /// 测试用执行命令方法
 /// </summary>
 /// <param name="commandStr">命令字符串</param>
 /// <returns>真假</returns>
 public bool TestExecCommand(string commandStr)
 {
     try
     {
         if (ioc == null)
         {
             ioc = CreateInstance();
         }
         return(ioc.ExecTestCommand(commandStr));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #3
0
ファイル: IoController.cs プロジェクト: rcw0125/-
 /// <summary>
 /// 执行命令
 /// </summary>
 /// <param name="pCommandList">命令集合</param>
 /// <returns>真假</returns>
 public bool ExecCommand(List <IoCommand> pCommandList)
 {
     try
     {
         if (ioc == null)
         {
             ioc = CreateInstance();
         }
         return(ioc.ExecCommand(pCommandList));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }