I am familiar w/ loading an appsettings.json section into a strongly typed object in .NET Core startup.cs. For example:
public class CustomSection
{
publ
For simple (perhaps microservice) applications you can just add it it as a singleton Dictionary
and then inject it wherever you need it:
var mobileConfig = Configuration.GetSection("MobileConfigInfo")
.GetChildren().ToDictionary(x => x.Key, x => x.Value);
services.AddSingleton(mobileConfig);
And the usage:
public class MyDependantClass
{
private readonly Dictionary _mobileConfig;
public MyDependantClass(Dictionary mobileConfig)
{
_mobileConfig = mobileConfig;
}
// Use your mobile config here
}