/// <summary>Sends a T2G online / offline notification event to local subscriber(s).</summary> /// <param name="pEvent">The notification event.</param> /// <returns>true if it succeeds, false if it fails.</returns> public void RaiseOnT2GOnlineStatusNotificationEvent(T2GOnlineStatusNotificationArgs eventArgs) { if (_t2gManager != null) { _t2gManager.NotifyEventHandlerAsync(eventArgs, null); } }
/// <summary> /// Notification received when a T2G is connecting / disconnecting. /// </summary> /// <param name="pSender">Sender Info.</param> /// <param name="pNotification">The notification data.</param> private static void OnT2GOnlineOffline(object pSender, T2GOnlineStatusNotificationArgs pNotification) { if (pNotification != null) { string message = "OnT2GOnlineOffline : " + pNotification.online.ToString(); LogManager.WriteLog(TraceType.INFO, message, "PIS.Ground.Session.SessionService.OnT2GOnlineOffline", null, EventIdEnum.Session); _notificationSender.SendT2GServerConnectionStatus(pNotification.online); } }
/// <summary>Sends a T2G online / offline notification event to local subscriber(s).</summary> /// <param name="pEvent">The notification event.</param> /// <returns>true if it succeeds, false if it fails.</returns> internal void RaiseOnT2GOnlineStatusNotificationEvent(T2GOnlineStatusNotificationArgs eventArgs) { NotifyEventHandlersAsync(eventArgs, _T2GOnlineOfflineEventHandlers); }