Example #1
0
        private void _eventNotifier_PviServiceConnected(object sender, PviApplicationEventArgs e)
        {
            _cpuManager      = e.CpuManager;
            _variableManager = e.VariableManager;

            _log.Info(e.Message);

            if (_cpuManager == null)
            {
                _log.Error($"_eventNotifier_PviServiceConnected CpuManager is null");
            }
            else
            {
                _cpuManager.LoadCpus();
            }
        }
Example #2
0
 public PollingService(Service service, ICpuManager cpuManager)
 {
     _service    = service;
     _cpuManager = cpuManager;
     _cts        = new CancellationTokenSource();
 }