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());
        }
Example #2
0
        public bool updateThresholds(Threshold threshold)
        {
            var update = ThresholdProcessor.updateThresholds(threshold);

            update.Wait();
            if (update.Status == TaskStatus.RanToCompletion)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #3
0
        public Threshold getThresholds()
        {
            var thresholds = ThresholdProcessor.getThresholds();

            return(thresholds);
        }