Exemple #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Health checker
            SmartCardPrinterMonitor.Start();
            CameraMonitor.Start();
            SmartCardReaderMonitor.Start();
            FingerprintReaderMonitor.Start();
            BarcodeScannerMonitor.Start();

            Application.Run(new Main());
        }
Exemple #2
0
 public void Start()
 {
     try
     {
         foreach (var camera in _settings.Cameras)
         {
             var monitor = new CameraMonitor(camera, _settings, _logger, _alarmHandlers);
             monitor.Start(_cancellationTokenSource.Token);
             _monitoredCameras.Add(monitor);
         }
     }
     catch (Exception e)
     {
         _logger.Write(LogEventLevel.Error, e, "CameraService error");
         throw;
     }
 }