Exemple #1
0
 public override void Execute()
 {
     IsRunning = true;
     if (_canExecute)
     {
         try
         {
             if (!_preProcessingCompleted)
             {
                 PreProcess();
             }
             _sequenceContext?.Start();
         }
         catch (Exception ex)
         {
             Logging.Error("Could not execute sequence. " + ShowItem.SequencePath + "; " + ex.Message);
             _canExecute = false;
             Complete();
         }
     }
     else
     {
         Logging.Error($"Could not execute sequence. {ShowItem.SequencePath}");
         Complete();
     }
 }
Exemple #2
0
 public override void Execute()
 {
     try
     {
         IsRunning = true;
         PreProcess();
         _sequenceContext.Start();
     }
     catch (Exception ex)
     {
         Logging.Error("Could not execute sequence " + ShowItem.Sequence_FileName + "; " + ex.Message);
     }
 }