protected virtual CommandProcessorResponse <AlertActionBase> AddAction(string name, string configuration, string type) { var action = AlertActionFactory.Create(name, type, configuration); action.Initialize(); return(WrapResponse(dal.AddAction(action))); }
protected virtual CommandProcessorResponse <int> UpdateAction(int actionId, string name, string configuration, string actionType) { var action = AlertActionFactory.Create(name, actionType, configuration); dal.UpdateAction(actionId, action); return(WrapResponse(actionId)); }
protected virtual CommandProcessorResponse <ActionTypeDescriptor[]> GetActionTypes() { return(WrapResponse(AlertActionFactory.GetAlertActionTypeDescriptors())); }
static Type[] GetKnownTypes() { return(AlertActionFactory.GetAlertActionTypes()); }