Working with global API settings
We have just defined how you can load data with the
options pattern within an ASP.NET application. In this section, we want to describe how you can configure an application and take advantage of everything we saw in the previous section.
With the birth of .NET Core, the standard has moved from the
Web.config file to the
appsettings.json file. The configurations can also be read from other sources, such as other file formats like the old
.ini file or a positional file.
Configuration in .NET 6
But, as described earlier, this interface does much more than just access a file for reading.
The following extract from the official documentation...