Beispiel #1
0
        public void restart(string hostname, int id)
        {
            if (LiveSystem.isAutoExecute(id) && !FerretControl.status().Equals("Stage"))
            {
                var answer = gui.askUser("This will put Ferret into Stage mode.  Are you sure you want to do this?");
                if (answer != YesNoCancel.YES)
                {
                    return;
                }
                FerretControl.requestFerretChange("Stage");
                wait(() => FerretControl.status().Equals("Stage"));
            }
            var fields = new Fields();

            fields.put("SystemId", id);
            fields.put("Hostname", hostname);
            fields.put("Timestamp", ymdHuman(now()));
            LiveLauncher.restartTopic().send(fields);
        }