You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When two collections are registered conditionally, it triggers a Torn Lifestyle validation, while the configuration is valid.
To Reproduce
varcontainer=newContainer();varreg1=container.Collection.CreateRegistration<ILogger>(typeof(NullLogger));varreg2=container.Collection.CreateRegistration<ILogger>(typeof(ConsoleLogger));container.RegisterConditional(serviceType:typeof(IEnumerable<ILogger>),registration:reg1,
c =>c.Consumer?.ImplementationType==typeof(Consumer1));container.RegisterConditional(serviceType:typeof(IEnumerable<ILogger>),registration:reg2,
c =>c.Consumer?.ImplementationType!=typeof(Consumer1));container.Verify();
Additional context
Latest release v5.5.0
The text was updated successfully, but these errors were encountered:
Describe the bug
When two collections are registered conditionally, it triggers a Torn Lifestyle validation, while the configuration is valid.
To Reproduce
Additional context
Latest release v5.5.0
The text was updated successfully, but these errors were encountered: