C
C#3y ago
Yawnder

Microsoft's DI Hierarchically controlled lifetime manager? [Answered]

With Microsoft's DI, what's the equivalent of hierarchically controlled lifetime manager? The situation I want to address is the following: - I'm within a scope with some stuff resolved. (let's say it's type FirstResolved, and it has a property of type FirstResolvedChild) - I want to create a child scope that will use the current FirstResolvedChild if needed, but that would get disposed if when that child scope is disposed of.
3 Replies
Pobiega
Pobiega3y ago
MSDI is lightweight, not sure it can do this by default You might need a more featured du container S/du/di
Yawnder
YawnderOP3y ago
That's what I'm afraid. I'm trying to test to see if I can get that behavior, or something that would mimic what I want.
Accord
Accord3y ago
✅ This post has been marked as answered!
Want results from more Discord servers?
Add your server