Ejemplo n.º 1
0
		public IAction Create (_TASK_ACTION_TYPE type)
		{
			IAction action = null;
			switch (type) {
				case _TASK_ACTION_TYPE.TASK_ACTION_COM_HANDLER:
					throw new NotSupportedException();
				case _TASK_ACTION_TYPE.TASK_ACTION_EXEC:
					action = new CronExecAction();
					break;
				case _TASK_ACTION_TYPE.TASK_ACTION_SEND_EMAIL:
					break;
				case _TASK_ACTION_TYPE.TASK_ACTION_SHOW_MESSAGE:
					break;
			}
			return action;
		}
Ejemplo n.º 2
0
        public IAction Create(_TASK_ACTION_TYPE type)
        {
            IAction action = null;

            switch (type)
            {
            case _TASK_ACTION_TYPE.TASK_ACTION_COM_HANDLER:
                throw new NotSupportedException();

            case _TASK_ACTION_TYPE.TASK_ACTION_EXEC:
                action = new CronExecAction();
                break;

            case _TASK_ACTION_TYPE.TASK_ACTION_SEND_EMAIL:
                break;

            case _TASK_ACTION_TYPE.TASK_ACTION_SHOW_MESSAGE:
                break;
            }
            return(action);
        }