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

Resolve Action<T> #114

Closed
Artusoft opened this issue Apr 9, 2019 · 2 comments
Closed

Resolve Action<T> #114

Artusoft opened this issue Apr 9, 2019 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Artusoft
Copy link

Artusoft commented Apr 9, 2019

Hi, with the version >= 4.0.1 this code not working any more:

` var container = new Container();

container.RegisterInstance<Action<String>>((s => Console.WriteLine("1-{0}", s)), ifAlreadyRegistered: IfAlreadyRegistered.AppendNotKeyed);
container.RegisterInstance<Action<String>>((s => Console.WriteLine("2-{0}", s)), ifAlreadyRegistered: IfAlreadyRegistered.AppendNotKeyed);

var actions = container.ResolveMany<Action<String>>();

actions.ToList().ForEach(a => a.Invoke("Hello world"));`

The "actions" collection is always empty.
Thank's

@dadhi
Copy link
Owner

dadhi commented Apr 9, 2019

Thanks for reporting, will check.

@dadhi dadhi self-assigned this Apr 10, 2019
@dadhi dadhi added the bug Something isn't working label Apr 10, 2019
@dadhi dadhi added this to the v4.0.3 milestone Apr 10, 2019
@dadhi dadhi closed this as completed in fc70e90 Apr 10, 2019
@dadhi
Copy link
Owner

dadhi commented Apr 10, 2019

DryIoc v4.0.3 with the fix is out

Leszek-Kowalski pushed a commit to Leszek-Kowalski/DryIoc that referenced this issue Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants