I call the string in appsettings.json file using these 2 lines:
var config = AppSettings.InitConfiguration();
var name = config["SomeProperties:Name"];
Ideally I would like to make the var config a global variable in each of my class files but haven't got a clue. I just want to use one line so i can call whatever setting I want for simplicity, any help?