Is it possible to do something like this:
var foos = Kernel.where(c=>c.module == myModule).GetAll<foo>;
And how would one go about it?
If(!possible)
How can you discriminate between bindings to the same interface when using the GetAll() method?
I am aware of WithParameter, WithMetadata, WithConstructorArgument and WithPropertyValue; Which one should i use and why?
Cheers
More information
I need this because I am creating a plugin framework. During the routing the plugin framework needs to be able to determine which controller’s to look at. If there are multiple home controllers across plugins it wont work as expected.
I need to be able to differentiate which plugin registered which IController implementation so that the controller factory knows to send the request to a controller in a specific plugin.
I ended up attaching metadata to each one:
Then routing my plugins like so:
And in the controller factory GetControllerType method