Example #1
0
        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)));
        }
Example #2
0
        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));
        }
Example #3
0
 protected virtual CommandProcessorResponse <ActionTypeDescriptor[]> GetActionTypes()
 {
     return(WrapResponse(AlertActionFactory.GetAlertActionTypeDescriptors()));
 }
Example #4
0
 static Type[] GetKnownTypes()
 {
     return(AlertActionFactory.GetAlertActionTypes());
 }