How to use Environment Variables in ASP.NET Core
In this article, I want to detail on the use of Environmental Variables and different ways of accessing them in an ASP.NET Core application
To create a strongly-typed class for binding to a configuration section:
A Configuration section can be bound to a strictly-typed class object in two ways:
Named options are when a single class is to be used for creating different objects of configurations that have the same structure.