示例#1
0
 /*
  *  Run Commands on machine in sequence, one after another.
  *  And the result will be returned when all of them are finished.
  */
 public Task <string> StartCmdInSeqTransaction(IMachineInfo machine, string[] commands)
 {
     return(Task.Run(() => {
         var trx = GammaClientTXFactory.GetCmdExecTX(machine, commands);
         AddTransaction(trx);
         return StartTransactions(trx, machine, commands);
     }));
 }
示例#2
0
 /*
  * QA tools transactions
  */
 public Task <string> StartQAToolsTransaction(IMachineInfo machine, GammaTXQATools tool, object qatoolArgs = null)
 {
     return(Task.Run(() =>
     {
         var trx = GammaClientTXFactory.GetQAToolsTX(machine, tool);
         AddTransaction(trx);
         return StartTransactions(trx, machine, tool, qatoolArgs);
     }));
 }
示例#3
0
 /*
  * return the task that run the command on the node with seq# not changed.
  * if the command are considered as in the same group, they should use this to start the transaction.
  */
 private Task <string> StartCmdGroupTransaction(IMachineInfo machine, string command)
 {
     return(Task.Run(() => {
         var trx = GammaClientTXFactory.GetCmdExecTX(machine, command);
         GammaClientTXLogger.GetInstance().RegisterTransaction(trx);
         AddTransaction(trx, seq);
         return StartTransaction(trx, machine, command);
     }));
 }
示例#4
0
 /*
  *  Clear environment transactions
  */
 public Task <string> StartClearEnvTransaction(IMachineInfo machine, GammaTXClearEnv clear_step)
 {
     return(Task.Run(() =>
     {
         var trx = GammaClientTXFactory.GetClearEnvTX(machine, clear_step);
         AddTransaction(trx);
         return StartTransactions(trx, machine, clear_step);
     }));
 }