Exemple #1
0
        public void OnError(NotificationException notificationException)
        {
            INotificationEvents notificationEventsHandler = connectResourceManager.GetNotificationEventHandler();

            if (notificationEventsHandler != null)
            {
                notificationEventsHandler.OnError(notificationException);
            }
        }
Exemple #2
0
        public void OnRegistration(IRegistration registration)
        {
            INotificationEvents notificationEventsHandler = connectResourceManager.GetNotificationEventHandler();

            if (notificationEventsHandler != null)
            {
                notificationEventsHandler.OnRegistration(registration);
            }
        }
Exemple #3
0
        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;
			    }
		    }
	    }
Exemple #5
0
        /// <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;
                }
            }
        }