Example #1
0
 public ActionResult stop(ArgBag arg)
 {
     if (bStarted)
     {
         threadTimer.Dispose();
     }
     return View();
 }
Example #2
0
 public ActionResult start(ArgBag arg)
 {
     if (!bStarted)
     {
         System.Threading.TimerCallback timerDelegate = new System.Threading.TimerCallback(main);
         threadTimer = new System.Threading.Timer(timerDelegate, null, dueTime, period);
         bStarted = true;
     }
     return View();
 }
Example #3
0
        public ActionResult callAction(int ID, ArgBag arg)
        {
            ActionRouting target = null;
            foreach (ActionRouting action in actionRoutingList)
            {
                if(ID == action.actionID)
                {
                    target = action;
                }
            }

            if(null != target)
            {
                return target.action(arg);
            }
            else
            {
                return null;
            }
        }
Example #4
0
        public ActionResult callAction(int controllerID, int actionID, ArgBag arg)
        {
            RouteBase target = null;
            foreach (RouteBase route in routing)
            {
                if (route.ID == controllerID)
                {
                    target = route;
                }
            }

            if (null != target)
            {
                return target.controller.callAction(actionID, arg);
            }
            else
            {
                return null;
            }
        }
Example #5
0
        public ActionResult callAction(int controllerID, int actionID, ArgBag arg)
        {
            RouteBase target = null;

            foreach (RouteBase route in routing)
            {
                if (route.ID == controllerID)
                {
                    target = route;
                }
            }

            if (null != target)
            {
                return(target.controller.callAction(actionID, arg));
            }
            else
            {
                return(null);
            }
        }
Example #6
0
 public ActionResult DefaultAction(ArgBag arg)
 {
     return View();
 }