예제 #1
0
 void AbortTasks()
 {
     if (updateStarted)
     {
         updateManager.Abort();
     }
 }
예제 #2
0
        private void CloseApplication()
        {
            if (_config != null)
            {
                _config.Serialize(Path.Combine(_appDataFolder, _configName));
            }

            UpdateManager updateManager = UpdateManager.Instance;

            if (updateManager.State == UpdateManager.UpdateProcessState.Prepared)
            {
                updateManager.Abort();

                while (updateManager.IsWorking)
                {
                    ;
                }

                updateManager.ApplyUpdates(false);
            }

            updateManager.CleanUp();
        }