BoDi icon indicating copy to clipboard operation
BoDi copied to clipboard

Allows collection registration and resolution

Open godrose opened this issue 7 years ago • 0 comments

There is a scenario which requires the following functionality to be available: public void RegisterCollection(Type dependencyType, IEnumerable<Type> dependencyTypes)

This should register the collection of types as a collection of their base type, i.e. if dependencyType is ICommonSomething and dependencyTypes contains two types FirstImplementation and SecondImplementation then upon constructor injection of IEnumerable<ICommonSomething> this parameter will be resolved into collection of FirstImplementation and SecondImplementation.

This is not a bug, merely a feature request.

godrose avatar Oct 17 '18 15:10 godrose