Exemplo n.º 1
0
        private void startMachineController()
        {
            _mc = new DefaultMachineController(configureVBoxWrapper());

            _mc.AnnounceRemainingTime += new EventHandler <MachineController.AnnounceRemainingTimeEventArgs>(requestAdditionalTime);
            try {
                _mc.Start();
            }
            finally {
                _mc.AnnounceRemainingTime -= requestAdditionalTime;
            }
        }
Exemplo n.º 2
0
 private void requestAdditionalTime(object sender, MachineController.AnnounceRemainingTimeEventArgs args) {
     this.RequestAdditionalTime((int)args.RemainingTime.TotalMilliseconds);
 }
Exemplo n.º 3
0
 private void requestPreshutdownTime(object sender, MachineController.AnnounceRemainingTimeEventArgs args) {
     _preShutdownEnabler.RequestAdditionalTime((int)args.RemainingTime.TotalMilliseconds);
 }
Exemplo n.º 4
0
        private void startMachineController() {
            _mc = new DefaultMachineController(configureVBoxWrapper());

            _mc.AnnounceRemainingTime += new EventHandler<MachineController.AnnounceRemainingTimeEventArgs>(requestAdditionalTime);
            try {
                _mc.Start();
            }
            finally {
                _mc.AnnounceRemainingTime -= requestAdditionalTime;
            }
        }