public void OnError(NotificationException notificationException) { INotificationEvents notificationEventsHandler = connectResourceManager.GetNotificationEventHandler(); if (notificationEventsHandler != null) { notificationEventsHandler.OnError(notificationException); } }
public void OnRegistration(IRegistration registration) { INotificationEvents notificationEventsHandler = connectResourceManager.GetNotificationEventHandler(); if (notificationEventsHandler != null) { notificationEventsHandler.OnRegistration(registration); } }
public void OnNotification(IMessage message) { INotificationEvents notificationEventsHandler = connectResourceManager.GetNotificationEventHandler(); if (notificationEventsHandler != null) { notificationEventsHandler.OnNotification(message); } }
/// <summary> /// Private EventHandler Constructor /// </summary> private EventHandler() { IEnumerator<String> events = coreResourceManager.GetApplicationDescriptor().GetEvents(); while(events.MoveNext()) { String eventName = events.Current; Object objectInstance = ClassUtils.CreateClassInstance(eventName); if(objectInstance is INotificationEvents) { notificationEventsHandler = (INotificationEvents) objectInstance; } else if(objectInstance is ISyncEvents) { syncEvents = (ISyncEvents) objectInstance; } } }
/// <summary> /// Private EventHandler Constructor /// </summary> private EventHandler() { IEnumerator <String> events = coreResourceManager.GetApplicationDescriptor().GetEvents(); while (events.MoveNext()) { String eventName = events.Current; Object objectInstance = ClassUtils.CreateClassInstance(eventName); if (objectInstance is INotificationEvents) { notificationEventsHandler = (INotificationEvents)objectInstance; } else if (objectInstance is ISyncEvents) { syncEvents = (ISyncEvents)objectInstance; } } }