/// <summary> /// Adds a message queue mapping. /// </summary> /// <param name="messageType">Type of message</param> /// <param name="queue">Queue to send the message to</param> public void AddQueueMapping(Type messageType, string queue) { if (!QueueMappings.ContainsKey(messageType.FullName)) { QueueMappings.Add(messageType.FullName, new List <string>()); } QueueMappings[messageType.FullName].Add(queue); }
/// <summary> /// Adds message queue mappings. /// </summary> /// <param name="messageType">Type of message</param> /// <param name="queues">Queues to send the message to</param> public void AddQueueMapping(Type messageType, IList <string> queues) { if (!QueueMappings.ContainsKey(messageType.FullName)) { QueueMappings.Add(messageType.FullName, new List <string>()); } foreach (string queue in queues) { QueueMappings[messageType.FullName].Add(queue); } }