You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
changed the title
Invoke by interface
Invoke multiple services satisfying the interface
Feb 14, 2023
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.
The text was updated successfully, but these errors were encountered: