Пример #1
0
 private void _eventNotifier_VariableValueChanged(object sender, PviApplicationEventArgs e)
 {
     if (ConfigurationProvider.VerboseVariableLogging)
     {
         _log.Info(e.Message);
     }
 }
Пример #2
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();
            }
        }
Пример #3
0
 private void _eventNotifier_CpuDisconnected(object sender, PviApplicationEventArgs e)
 {
 }
Пример #4
0
 private void _eventNotifier_CpuError(object sender, PviApplicationEventArgs e)
 {
     _log.Info(e.Message);
 }
Пример #5
0
 private void _eventNotifier_VariableConnected(object sender, PviApplicationEventArgs e)
 {
     _log.Info(e.Message);
 }
Пример #6
0
 private void _eventNotifier_PviServiceDisconnected(object sender, PviApplicationEventArgs e)
 {
     System.Threading.Thread.Sleep(TimeSpan.FromSeconds(10));
     _serviceWrapper.ReConnectPviService();
 }
Пример #7
0
 private void _eventNotifier_PviServiceError(object sender, PviApplicationEventArgs e)
 {
 }