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