❔ Passing parameters to Services

Hi, I've a webapp where, at start, I parse some configuration values from
appssettings.json

Then, from these configuration values, I'd like to build some object and passing them to services. Please note these services could have other services injected into them.

Should I have classes representing configuration objects, make them services, use
GetRequestService
to initialize them and finally inject them into other services?
Was this page helpful?