Exemplo n.º 1
0
        public void Start()
        {
            StartBase();

            Timers.Start("Poller", 1000, () =>
            {
                _logger.LogInformation("Service Started Polling " + Environment.NewLine);

                try
                {
                    _telemetryRepository.ReadUDPStreamFromFile();
                }
                catch (Exception excep)
                {
                    _logger.LogInformation("Service Polling Failure " + excep + Environment.NewLine);

                    throw;
                };

                _logger.LogInformation("Service Completed Polling " + Environment.NewLine);
            });
        }