Closed darkcamper closed 7 years ago
I've noticed that you can automatically Locate an IEnumerable<Func> but not an Func<IEnumerable> (or at least I've been unable to make it work).
I think it would make sense when you want to declare a dependency on a single factory that returns all known exports for T.
public MyClass(Func<IEnumerable<IWhatEver>> knownWhateverFactory)
So looking at this it's definitely a bug. It has to do with the way wrappers are calculated and the fact IEnumerable<T> and T[] don't have activation strategies.
IEnumerable<T>
T[]
I've noticed that you can automatically Locate an IEnumerable<Func> but not an Func<IEnumerable> (or at least I've been unable to make it work).
I think it would make sense when you want to declare a dependency on a single factory that returns all known exports for T.