Closed Akeit0 closed 3 months ago
Thanks for the report. it is strange..
📝
Internally, the key of the ConcurrentDictionary holding the Singleton is Registration
, but when multiple registrations are found in the parent and child, the keys don't match, so it looks like they are duplicate instantiated.
Fixed in #698 .
Now the behavior is as follows.
First, I prepared these classes.
Log
This seems fine.
But, when I changed the ChildLifetimeScope as follows
logs changed to
. I assumed It would be like
ChildLifetimeScope A 1,A 0
.I don't know what the intended behavior is, but I don't think the result is intended.