Ejemplo n.º 1
0
        private static string[] ConfigureMessageTypes(CustomMessageTypeMap[] customMethodMap)
        {
            var messagesTypes = MessageMapper.GetHandledTypes().Select(t => t.FullName).ToArray();

            if (customMethodMap != null)
            {
                MessageMapper.AddCustomMessageMaps(customMethodMap);
                var customMessageTypes = customMethodMap.Select(m => m.MessageType);

                messagesTypes = messagesTypes
                                .Concat(customMessageTypes)
                                .ToArray();
            }

            return(messagesTypes);
        }