There is a stackoverflow answer here on how to create strongly typed configuration on a .net core console app but my question is how do you pass this strongly typed configuration to other services;
something like this
static void Main(string[] args)
{
//...
.AddSingleton<IMyService, MyService>()
}
public class MyService
{
private readonly IConfiguration _configuration;
public MyService (IConfiguration configuration)
{
_configuration = configuration;
}
}