Esempio n. 1
0
        private void GetPropertiesFromMessageCore(Message message, MessageDescription messageDescription, object[] parameters)
        {
            MessageProperties properties = message.Properties;
            MessagePropertyDescriptionCollection propertyDescriptions = messageDescription.Properties;

            for (int i = 0; i < propertyDescriptions.Count; i++)
            {
                MessagePropertyDescription propertyDescription = propertyDescriptions[i];
                if (properties.ContainsKey(propertyDescription.Name))
                {
                    parameters[propertyDescription.Index] = properties[propertyDescription.Name];
                }
            }
        }
Esempio n. 2
0
        private void AddPropertiesToMessageCore(Message message, MessageDescription messageDescription, object[] parameters)
        {
            MessageProperties properties = message.Properties;
            MessagePropertyDescriptionCollection propertyDescriptions = messageDescription.Properties;

            for (int i = 0; i < propertyDescriptions.Count; i++)
            {
                MessagePropertyDescription propertyDescription = propertyDescriptions[i];
                object parameter = parameters[propertyDescription.Index];
                if (null != parameter)
                {
                    properties.Add(propertyDescription.Name, parameter);
                }
            }
        }
Esempio n. 3
0
        private void AddPropertiesToMessageCore(Message message, MessageDescription messageDescription, object[] parameters)
        {
            MessageProperties properties = message.Properties;
            MessagePropertyDescriptionCollection descriptions = messageDescription.Properties;

            for (int i = 0; i < descriptions.Count; i++)
            {
                MessagePropertyDescription description = descriptions[i];
                object property = parameters[description.Index];
                if (property != null)
                {
                    properties.Add(description.Name, property);
                }
            }
        }
 // Methods
 internal MessagePropertyDescription(MessagePropertyDescription other) : base(other)
 {
 }
Esempio n. 5
0
 internal MessagePropertyDescription(MessagePropertyDescription other)
     : base(other)
 {
 }