public ActionResult MachineList() { List <Machine> machines = MachineProcessor.getMachineAll(sortBy); Threshold thresholds = ThresholdProcessor.getThresholds(); ViewBag.Machines = machines; ViewBag.Thresholds = thresholds; Response.AddHeader("Refresh", "60"); // Refresh whole web page every 60 seconds return(View()); }
public bool updateThresholds(Threshold threshold) { var update = ThresholdProcessor.updateThresholds(threshold); update.Wait(); if (update.Status == TaskStatus.RanToCompletion) { return(true); } else { return(false); } }
public Threshold getThresholds() { var thresholds = ThresholdProcessor.getThresholds(); return(thresholds); }