DEV Community

Discussion on: Dependency Injection with Connection Strings

Collapse
 
ngnasr1123 profile image
ngnasr1123

Hi Justin. Great article. Very helpful. What do you do in cases of primitive types which are not retrieved from app settings? Let's say we want to construct an object that is dependent on a customer id. If the construction of our dependency graph is meant to happen in the root class/entry point of our application, how would we go about injecting this parameter?