# general


10/18/2023, 10:00 AM
It seems like
in pulumi dotnet for dependency injection doesn't work as intended. I'm injecting an interface into multiple classes that provisions some providers that I want to be available to the dependent classes. However, even though I'm using a singleton I'm seeing errors because at each injection its trying to recreate the providers leading to a clash. There was an issue from 2021 that may be referring to the same thing and someone responds that you can use lazy initialisation, but I'm unsure what that actually means in the context of dependency injection. Does
just not work, or is there a way to make it work as intended? Any help greatly appreciated 🙂