© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
5 replies
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
FirstResolved
, and it has a property of type
FirstResolvedChild
FirstResolvedChild
)
- I want to create a child scope that will use the current
FirstResolvedChild
FirstResolvedChild
if needed, but that would get disposed if when that child scope is disposed of.
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

Refactor constructor to be used with DI [Answered]
C#CC# / help
4y ago