/// <summary>
 /// Initializes a new instance of the <see cref="ConfigServerConfigurationProvider"/> class from a <see cref="ConfigServerConfigurationSource"/>
 /// </summary>
 /// <param name="source">the <see cref="ConfigServerConfigurationSource"/> the provider uses when accessing the server.</param>
 public ConfigServerConfigurationProvider(ConfigServerConfigurationSource source)
     : this(source.DefaultSettings, source.LogFactory)
 {
     _ = source.Configuration as IConfigurationRoot;
     _configuration = WrapWithPlaceholderResolver(source.Configuration);
     ConfigurationSettingsHelper.Initialize(PREFIX, _settings, _configuration);
 }
        internal void Initialize(ConfigServerConfigurationSource source, HttpClient httpClient = null, ILoggerFactory logFactory = null)
        {
            var settings      = source.DefaultSettings;
            var configuration = WrapWithPlaceholderResolver(source.Configuration);

            Initialize(settings, configuration, httpClient, logFactory);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConfigServerConfigurationProvider"/> class from a <see cref="ConfigServerConfigurationSource"/>
 /// </summary>
 /// <param name="source">the <see cref="ConfigServerConfigurationSource"/> the provider uses when accessing the server.</param>
 /// <param name="httpClient">the httpClient to use</param>
 public ConfigServerConfigurationProvider(ConfigServerConfigurationSource source, HttpClient httpClient)
     : this(source.DefaultSettings, source.LogFactory)
 {
     _client        = httpClient ?? throw new ArgumentNullException(nameof(httpClient));
     _              = source.Configuration as IConfigurationRoot;
     _configuration = WrapWithPlaceholderResolver(source.Configuration);
     ConfigurationSettingsHelper.Initialize(PREFIX, _settings, _configuration);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConfigServerConfigurationProvider"/> class from a <see cref="ConfigServerConfigurationSource"/>
 /// </summary>
 /// <param name="source">the <see cref="ConfigServerConfigurationSource"/> the provider uses when accessing the server.</param>
 /// <param name="httpClient">the httpClient to use</param>
 public ConfigServerConfigurationProvider(ConfigServerConfigurationSource source, HttpClient httpClient)
 {
     _ = httpClient ?? throw new ArgumentNullException(nameof(httpClient));
     Initialize(source, httpClient);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConfigServerConfigurationProvider"/> class from a <see cref="ConfigServerConfigurationSource"/>
 /// </summary>
 /// <param name="source">the <see cref="ConfigServerConfigurationSource"/> the provider uses when accessing the server.</param>
 public ConfigServerConfigurationProvider(ConfigServerConfigurationSource source)
 {
     _ = source.Configuration as IConfigurationRoot;
     Initialize(source);
 }