Ejemplo n.º 1
0
        public static (IList <object>, IList <object>) TriggerCheck(RecipientState state, AgentTriggerPair pair, AbstractTrigger message)
        {
            ITriggeredAction func = state.TriggerToAction[pair];

            (IList <object>, IList <object>)result = func.Execute(state, message);

            return(result.Item1 ?? new List <object>(), result.Item2 ?? new List <object>());
        }
Ejemplo n.º 2
0
 public AddTriggerToActionMessage(AgentTriggerPair trigger, ITriggeredAction action)
 {
     Trigger = trigger;
     Action  = action;
 }