Example #1
0
 public void Start()
 {
     try
     {
         _logger.Debug("Service starting");
         _configurator.Start();
         _logger.Info("Service started");
         _manualResetEvent.WaitOne();
     }
     catch (Exception ex)
     {
         Console.Error.WriteLine("An unhandled exception occurred while starting service {0}", ex);
         _logger.Error("An unhandled exception occurred while starting service", ex);
     }
 }