Exemple #1
0
        public override bool CanExecute(IParameterDic pm)
        {
            IParameterDic pm2 = pm.Clone();

            ScriptRunner.RunScriptAsync(pm2, ConditionCommand);
            return(pm2.IsHandled() && pm2.Error() == null);
        }
Exemple #2
0
 public override IScriptCommand Execute(IParameterDic pm)
 {
     if (_exception == null)
     {
         if (MarkHandled)
         {
             pm.IsHandled(true);
         }
         //logger.Debug("OK");
     }
     else
     {
         logger.Error(_exception.Message, _exception);
         pm.Error(_exception);
     }
     return(NextCommand);
 }