Ejemplo n.º 1
0
        protected virtual void Execute(Guid ruleId, string mac, string ip, string name)
        {
            var linkedActions = dal.GetLinkedActions(ruleId);

            foreach (var action in linkedActions)
            {
                action.Execute(new{ RuleId = ruleId, Mac = mac, Ip = ip, Name = name });
            }
        }
Ejemplo n.º 2
0
 protected virtual CommandProcessorResponse <AlertActionBase[]> GetLinkedActions(Guid ruleId)
 {
     return(WrapResponse(dal.GetLinkedActions(ruleId)));
 }