How to configure services in my cli application:
So I have code like above where I'm creating a container using autofac and then registering some services with methods like
The issue is I want the logger to get its configuration details from the IConfiguraton supplied by WithSystemConfiguration() and I'm not sure whether to use a build callback like
or create a wrapper class like MyCustomLogger that uses ILogger and IConfiguration in it's constructor
The issue is I want the logger to get its configuration details from the IConfiguraton supplied by WithSystemConfiguration() and I'm not sure whether to use a build callback like
or create a wrapper class like MyCustomLogger that uses ILogger and IConfiguration in it's constructor