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
Allow collections to be registered conditional, similar to what Container.RegisterConditional does for non-collection registrations.
e.g.:
container.Collection.RegisterConditional(serviceType:typeof(ILogger),serviceTypes:new[]{typeof(SqlLogger),typeof(FileLogger)},
c =>c.Consumer.Target.Name.StartsWith("realLoggers"));container.Collection.RegisterConditional(serviceType:typeof(ILogger),serviceTypes:new[]{typeof(ConsoleLogger),typeof(NullLogger)},
c =>!c.Handled);
The difficulty in this feature is the following:
It should work for both ambient and flowing scope scenarios
Allow collections to be registered conditional, similar to what Container.RegisterConditional does for non-collection registrations.
e.g.:
The difficulty in this feature is the following:
Related to #1009 and #1010.
The text was updated successfully, but these errors were encountered: