public ServiceManager(ILogger logger, TimeSpan serviceWaitTimeout) { _logger = logger; _guardServerController = new ServiceWrapper("TT Guardian Server", true, serviceWaitTimeout); _guardianController = new ServiceWrapper("TT Guardian", false, serviceWaitTimeout); _ttmController = new ServiceWrapper("TT Messaging", false, serviceWaitTimeout); }
void stopService(ServiceWrapper service) { _logger.WriteLine("Stopping {0} service", service.DisplayName); service.Stop(); }
void startService(ServiceWrapper service) { _logger.WriteLine("Starting {0} service", service.DisplayName); service.Start(); }