Exemple #1
0
        public async Task StartAsync()
        {
            logger.LogDebug("StartAsync");
            timers = new List <MonitorProcessService <TKey> >();
            var sensors = await sensorService.GetActiveSensorsAsync();

            foreach (var sensor in sensors)
            {
                var timer = new MonitorProcessService <TKey>(sensor, probeMonitorService);
                timer.Start();
                timers.Add(timer);
            }
        }