© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
10 replies
alkasel#159

❔ Passing parameters to Services

Hi, I've a webapp where, at start, I parse some configuration values from
appssettings.json
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
GetRequestService
to initialize them and finally inject them into other services?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Passing parameters to overloaded constructor
C#CC# / help
2y ago
Background services with parameters
C#CC# / help
4y ago
✅ Passing Multiple Parameters Through A Button
C#CC# / help
4y ago
Passing the where parameters by the function
C#CC# / help
4y ago