Пример #1
0
        public static void BackupAndRemove(string[] servicesToRemove, IUserInterface ui)
        {
            var serviceRemover = new ServiceRemover(servicesToRemove, ui);

            string[] actualBackuppedServices = serviceRemover.PerformBackup();
            serviceRemover.PerformRemoval(actualBackuppedServices);
        }
Пример #2
0
        public static void BackupAndRemove(string[] servicesToRemove,
                                           IUserInterface ui,
                                           ServiceRemovalMode removalMode = ServiceRemovalMode.ServiceControl)
        {
            var serviceRemover = new ServiceRemover(servicesToRemove, ui);

            string[] actualBackuppedServices = serviceRemover.PerformBackup();
            serviceRemover.PerformRemoval(actualBackuppedServices, removalMode);
        }
Пример #3
0
        public void Run()
        {
            ui.PrintHeading("Backing up services...");
            string[] actualBackuppedServices = serviceRemover.PerformBackup(servicesToRemove);

            if (actualBackuppedServices.Length > 0)
            {
                ui.PrintHeading("Removing services...");
                serviceRemover.PerformRemoval(actualBackuppedServices);
            }
        }