Skip to content
New issue

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

Extend support for special types #91

Closed
darkcamper opened this issue May 26, 2017 · 1 comment
Closed

Extend support for special types #91

darkcamper opened this issue May 26, 2017 · 1 comment
Labels
Milestone

Comments

@darkcamper
Copy link

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)
@ipjohnson ipjohnson added the bug label May 26, 2017
@ipjohnson
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants