예제 #1
0
        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);
        }
예제 #2
0
 void stopService(ServiceWrapper service)
 {
     _logger.WriteLine("Stopping {0} service", service.DisplayName);
     service.Stop();
 }
예제 #3
0
 void startService(ServiceWrapper service)
 {
     _logger.WriteLine("Starting {0} service", service.DisplayName);
     service.Start();
 }