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
I use the way below:
appsettings.json:
"services": {
"user-service": "http://user-service:5000/",
"app-service": "http://app-service:5000/"
}
startup.cs:
services.Configure>(Configuration.GetSection("services"));
Usage:
private readonly Dictionary _services;
public YourConstructor(IOptions> servicesAccessor)
{
_services = servicesAccessor.Value;
}