コード例 #1
0
        public ActionResult RefreshMachine(int id)
        {
            MachinesManagement machineManagment = new MachinesManagement();

            CloudWebPortal.Areas.Aneka.Models.Machine machine = db.Machines.Find(id);
            machineManagment.UpdateMachineStatus(machine.MachineId, machineManagment.getLogin(machine));
            return RedirectToAction("ManageMachinesandResourcePools", "Infrastructure");
        }
コード例 #2
0
        public ActionResult RefreshAllMachineInResourcePool(int id)
        {
            MachinesManagement machineManagment = new MachinesManagement();

            List<CloudWebPortal.Areas.Aneka.Models.Machine> machineList = db.ResourcePools.Find(id).Machines.ToList();
            foreach (var machine in machineList)
                machineManagment.UpdateMachineStatus(machine.MachineId, machineManagment.getLogin(machine));
            return RedirectToAction("ManageMachinesandResourcePools", "Infrastructure");
        }