We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In this scenario:
var container = new StashboxContainer(c => c .WithMemberInjectionWithoutAnnotation() .WithCircularDependencyTracking()) .Register<ITest, Test>(c => c.DefinesScope("root").WithName("root")) .Register<ITest, Test1>(c => c.InNamedScope("root").DefinesScope("A")) .Register<ITest, Test2>(c => c.InNamedScope("root").DefinesScope("B")) .Register<ITest, Test3>(c => c.InNamedScope("A")) .Register<ITest, Test4>(c => c.InNamedScope("A")) .Register<ITest, Test5>(c => c.InNamedScope("B")) .Register<ITest, Test6>(c => c.InNamedScope("B")); var r = container.Resolve<ITest>("root"); interface ITest { } class Test : ITest { public ITest[] Subs { get; set; } } class Test1 : ITest { public ITest[] Subs { get; set; } } class Test2 : ITest { public ITest[] Subs { get; set; } } class Test3 : ITest { } class Test4 : ITest { } class Test5 : ITest { } class Test6 : ITest { }
Test1 and Test2 are selected even for scope A and B, but they should only when the bottom level scope is root. This causes circular resolution.
Test1
Test2
The text was updated successfully, but these errors were encountered:
Fix for #74
d82f2e4
fixed in v3.1.0
Sorry, something went wrong.
z4kn4fein
No branches or pull requests
In this scenario:
Test1
andTest2
are selected even for scope A and B, but they should only when the bottom level scope is root. This causes circular resolution.The text was updated successfully, but these errors were encountered: