Example #1
0
 /// <summary>
 /// service OnSystemChangedNotification
 /// </summary>
 /// <param name="system">system descriptor</param>
 public void onSystemChangedNotification(systemInfoStruct system)
 {
     if (system != null)
     {
         Action <systemInfoStruct> invoker = onSystemChangedNotificationAsync;
         invoker.BeginInvoke(system, invoker.EndInvoke, null);
     }
 }
Example #2
0
 /// <summary>Executes the system changed notification asynchronous action.</summary>
 /// <param name="system">system descriptor.</param>
 private void onSystemChangedNotificationAsync(systemInfoStruct system)
 {
     try
     {
         T2GManagerContainer.T2GManager.T2GNotifier.OnSystemChangedNotification(system);
     }
     catch (System.Exception exception)
     {
         LogMgmt.LogManager.WriteLog(TraceType.EXCEPTION, exception.Message, "PIS.Ground.Core.T2G.onSystemChangedNotificationAsync", exception, EventIdEnum.GroundCore);
     }
 }
        /// <summary>Process System Changed Notification.</summary>
        /// <param name="system">The system.</param>
        public void OnSystemChangedNotification(systemInfoStruct system)
        {
            lock (_lock)
            {
                if (system != null)
                {
                    SystemInfo newSystem = T2GDataConverter.BuildSystem(system);

                    if (newSystem != null)
                    {
                        _localDataStorage.OnSystemChanged(newSystem);

                        ElementEventArgs args = _localDataStorage.BuildElementInfoChangedEvent(newSystem.SystemId);

                        if (args != null)
                        {
                            _notifierTarget.RaiseOnElementInfoChangeEvent(args);
                        }
                    }
                }
            }
        }