/// <summary>
        /// Initialize a new instance from the source configuration.
        /// </summary>
        /// <param name="source">The source configuration.</param>
        public ChainedConfigurationProvider(ChainedConfigurationSource source)
        {
            ThrowHelper.ThrowIfNull(source);

            _config = source.Configuration ?? throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "source.Configuration"), nameof(source));
            _shouldDisposeConfig = source.ShouldDisposeConfiguration;
        }
        /// <summary>
        /// Initialize a new instance from the source configuration.
        /// </summary>
        /// <param name="source">The source configuration.</param>
        public ChainedConfigurationProvider(ChainedConfigurationSource source)
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }
            if (source.Configuration == null)
            {
                throw new ArgumentNullException(nameof(source.Configuration));
            }

            _config = source.Configuration;
        }
        /// <summary>
        /// Initialize a new instance from the source configuration.
        /// </summary>
        /// <param name="source">The source configuration.</param>
        public ChainedConfigurationProvider(ChainedConfigurationSource source)
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }
            if (source.Configuration == null)
            {
                throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "source.Configuration"), nameof(source));
            }

            _config = source.Configuration;
            _shouldDisposeConfig = source.ShouldDisposeConfiguration;
        }
 /// <summary>
 /// Initialize a new instance from the source configuration.
 /// </summary>
 /// <param name="source">The source configuration.</param>
 public ChainedConfigurationProvider(ChainedConfigurationSource source !!)
 {
     if (source.Configuration == null)
Example #5
0
 /// <summary>
 /// Initialize a new instance from the source configuration.
 /// </summary>
 /// <param name="source">The source configuration.</param>
 public ChainedConfigurationProvider(ChainedConfigurationSource source !!)
 {