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 }); } }
protected virtual CommandProcessorResponse <AlertActionBase[]> GetLinkedActions(Guid ruleId) { return(WrapResponse(dal.GetLinkedActions(ruleId))); }