public void EnableUpdates() { var creator = new CommandLineProcessCreator(); var enableUpdateService = creator.CreateService(StaticConfigurationManager.GetValue("EnableUpdate")); enableUpdateService.Start(); var startUpdateService = creator.CreateService(StaticConfigurationManager.GetValue("StartUpdate")); startUpdateService.Start(); var enableOrchestratorService = creator.CreateService(StaticConfigurationManager.GetValue("EnableOrchestrator")); enableOrchestratorService.Start(); var startOrchestratorService = creator.CreateService(StaticConfigurationManager.GetValue("StartOrchestrator")); startOrchestratorService.Start(); }
public void DisableUpdates() { var creator = new CommandLineProcessCreator(); var stopUpdateService = creator.CreateService(StaticConfigurationManager.GetValue("StopUpdate")); stopUpdateService.Start(); var disableUpdateService = creator.CreateService(StaticConfigurationManager.GetValue("DisableUpdate")); disableUpdateService.Start(); var stopOrchestratorService = creator.CreateService(StaticConfigurationManager.GetValue("StopOrchestrator")); stopOrchestratorService.Start(); var disableOrchestratorService = creator.CreateService(StaticConfigurationManager.GetValue("DisableOrchestrator")); disableOrchestratorService.Start(); var setManualTrustedInstaller = creator.CreateService(StaticConfigurationManager.GetValue("EnableTrustedInstaller")); setManualTrustedInstaller.Start(); }