/// <summary>
 /// Set notification descriptor 
 /// </summary>
 /// <param name="notificationDescriptor">Notification Descriptor</param>
 public void SetNotificationDescriptor(NotificationDescriptor notificationDescriptor)
 {
     this.notificationDescriptor = notificationDescriptor;
 }
Ejemplo n.º 2
0
        //private String SENDER_ID = "";//notificationDescriptor.getProperty(INotification.SENDER_ID);
	
	    public NotificationService() 
            //: base(SENDER_ID)
        {
		    applicationDescriptor = resourceManager.GetApplicationDescriptor();
		    notificationDescriptor = applicationDescriptor.GetNotificationDescriptor();
        }
 /// <summary>
 /// Set notification descriptor
 /// </summary>
 /// <param name="notificationDescriptor">Notification Descriptor</param>
 public void SetNotificationDescriptor(NotificationDescriptor notificationDescriptor)
 {
     this.notificationDescriptor = notificationDescriptor;
 }
        public override void StartElement(XmlReader reader, IDictionary<String, String> attributes)
        {

            String localName = reader.Name;
            tempValue = new StringBuilder();
		
		    if(localName.Equals(Core.Constants.APPLICATION_DESCRIPTOR_SIMINOV, StringComparison.OrdinalIgnoreCase)) 
            {
			    applicationDescriptor = new ApplicationDescriptor();
		    } 
            else if(localName.Equals(Core.Constants.APPLICATION_DESCRIPTOR_PROPERTY, StringComparison.OrdinalIgnoreCase)) 
            {
			    InitializeProperty(attributes);
		    } 
            else if(localName.Equals(Constants.NOTIFICATION_DESCRIPTOR, StringComparison.OrdinalIgnoreCase)) 
            {

			    isNotificationDescriptor = true;
			    notificationDescriptor = new NotificationDescriptor();
		    }
	    }