Closed SimonG96 closed 5 years ago
Change the List<> that is used for the _singletons and _multitons in the IocContainer to a ConditionalWeakTable<> to allow garbage collection once a TScope is destroyed.
List<>
_singletons
_multitons
IocContainer
ConditionalWeakTable<>
TScope
Don't use ConditionalWeakTable<> for _singletons, they shall always be available
Change the
List<>
that is used for the_singletons
and_multitons
in theIocContainer
to aConditionalWeakTable<>
to allow garbage collection once aTScope
is destroyed.