How to read configuration values in ASP.NET Core

from blog Just Some Code, | ↗ original
Let’s see how to read and overwrite configuration values with ASP.NET Core 6.0 using the Options pattern. To read configuration values following the Options pattern, add a new section in the appsetttings.json file, create a matching class, and register it into the dependencies container using the Configure() method. Those are Macaroon options....