Skip to content

Extend support for special types #91

Closed

Description

@darkcamper

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)

Activity

  1. ipjohnson commented on May 26, 2017

    @ipjohnson
    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.

  2. added this to the 6.2.0 milestone on May 26, 2017
  3. added a commit that references this issue on May 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions