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]; } } }
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); } } }
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) { }
internal MessagePropertyDescription(MessagePropertyDescription other) : base(other) { }