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

Invoke multiple services satisfying the interface #29

Open
flymedllva opened this issue Feb 12, 2023 · 2 comments
Open

Invoke multiple services satisfying the interface #29

flymedllva opened this issue Feb 12, 2023 · 2 comments
Milestone

Comments

@flymedllva
Copy link

Is it possible to do an Invoke of the providers corresponding to the interface and get them as a slice? And it would be great if they were initialized at the moment of such Invoke.

@flymedllva
Copy link
Author

flymedllva commented Feb 14, 2023

That is, I have a list of services that satisfy an interface and I want to get them, but I don't know the name and type of the structure that implements that interface.

I could call ListProvidedServices to look at the name and select the services I want, but I cannot get them because all services are different structures implementing 1 interface. I could do it through Get and manual conversion to the interface I need, but Get is unfortunately private.

@flymedllva flymedllva changed the title Invoke by interface Invoke multiple services satisfying the interface Feb 14, 2023
@Jictyvoo
Copy link

Jictyvoo commented Apr 7, 2023

@flymedllva gonna link this issue here #33 as it looks pretty the same request

@samber samber added this to the v2 milestone May 7, 2024
@samber samber mentioned this issue May 7, 2024
50 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants