Summary
In this chapter, we saw how configuration works in .NET 5, how the default configuration is provided to the application, how to add key-value pair configurations in a hierarchical order, how to read a configuration, how to leverage the Azure Key Vault configuration provider and the file configuration provider, and how to build a custom configuration provider to read from a SQL database. You now have the knowledge that's needed to implement different configurations in your project depending on the specific needs.
In the next chapter, we will learn about logging and, how it works in .NET 5.