public static List <SupportedType> LoadSupportedTypes()
        {
            MessageBusSection busSection = (MessageBusSection)ConfigurationManager.GetSection(ConfigLabels.MESSAGE_BUS_SECTION);
            SupportedMessageTypeCollection collection = busSection.SupportedMessages;
            IEnumerator          enumerator           = collection.GetEnumerator();
            List <SupportedType> result = new List <SupportedType>();

            while (enumerator.MoveNext())
            {
                SupportedType current = enumerator.Current as SupportedType;
                result.Add(current);
            }
            return(result);
        }
        public static List <Parameter> GetAllParameters()
        {
            MessageBusSection busSection = (MessageBusSection)ConfigurationManager.GetSection(ConfigLabels.MESSAGE_BUS_SECTION);
            IEnumerator       enumerator = busSection.Parameters.GetEnumerator();
            List <Parameter>  result     = new List <Parameter>();

            while (enumerator.MoveNext())
            {
                Parameter param = enumerator.Current as Parameter;
                result.Add(param);
            }

            return(result);
        }