concept ConfigurationBuilder in category asp.net

This is an excerpt from Manning's book ASP.NET Core in Action.
The ConfigureAppConfiguration() method is the focus of section 11.3. It’s where you load the settings and secrets for your app, whether they’re in JSON files, environment variables, or command-line arguments. In the next section, you’ll see how to use this method to load configuration values from various configuration providers using the ASP.NET Core ConfigurationBuilder.
ConfigurationBuilder describes how to construct the final configuration representation for your app, and IConfigurationRoot holds the configuration values themselves.
You describe your configuration setup by adding a number of IConfigurationProviders to IConfigurationBuilder. These describe how to load the key-value pairs from a particular source; for example, a JSON file or from environment variables, as shown in figure 11.2. Calling Build() on ConfigurationBuilder queries each of these providers for the values they contain to create the IConfigurationRoot instance.
ConfigurationBuilder describes how to construct the final configuration representation for your app and IConfigurationRoot holds the configuration values themselves. You create a configuration object by adding configuration providers to an instance of ConfigurationBuilder using extension methods such as AddJsonFile(). WebHostBuilder creates the ConfigurationBuilder instance for you and calls Build() to create an instance of IConfigurationRoot.