public MicroserviceDescription(IDictionary <string, AppConfigSetting> appSettings)
            : base(".", appSettings)
        {
            _properties = new Dictionary <string, MicroserviceDescriptionProperty>();
            var otherSettings = appSettings.Where(p => !p.Key.StartsWith("."));

            foreach (KeyValuePair <string, AppConfigSetting> kvp in otherSettings)
            {
                MicroserviceDescriptionProperty prop = kvp.Value.ToMicroserviceDescriptionProperty();
                _properties.Add(prop.Name, prop);
            }
        }
Example #2
0
        public static void CopyTo(this MicroserviceDescriptionProperty descriptionProperty, ChannelInfoProperty channelProperty)
        {
            if (descriptionProperty == null)
            {
                throw new ArgumentNullException(nameof(descriptionProperty));
            }

            if (channelProperty == null)
            {
                throw new ArgumentNullException(nameof(channelProperty));
            }

            mapper.Map <MicroserviceDescriptionProperty, ChannelInfoProperty>(descriptionProperty, channelProperty);
        }