I m trying to wrap my mind around MEF. There is one thing I don t understand.
Assume that I have an interface, named ISomething, which is a contract, and I have more than one assemblies in a folder that contains my application, and I have no idea how many ISomething implementations are in them, or which one contains one.
If I create a host application in which I use MEF, and would like to get an ISomething, but only one, how does MEF decide which implementation it will give me?
Or, similarly to a common IoC container, how do I tell it which implementation should it use?
Thanks in advance for your answers.