Closed pnicoletti88 closed 9 months ago
Thanks for this repro. Using the supplied code I can confirm that this is a bug. I haven't fully investigated what the cause of the bug is, but what I see is that the problem only appear in a very specific situation, which is when instances are being resolved from within the constructor of a singleton component.
I don't have a solution yet, but a workaround is to either:
GetInstance
out of the constructor.EnableAutoVerification
to false.Will try to fix this in the following patch or minor release.
Sorry for the delay of almost a year, but this bug finally got fixed in v5.4.4.
I have two different Flowing Scopes, but they are returning the same instance of a scoped dependency.
To Reproduce
In this example the
Assert.Fail
is being hit. I do not believe this is expected.Additional context
container.Options.EnableAutoVerification = false;
fixes the problem.