public ActionResult stop(ArgBag arg) { if (bStarted) { threadTimer.Dispose(); } return View(); }
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(); }
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; } }
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; } }
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); } }
public ActionResult DefaultAction(ArgBag arg) { return View(); }