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 t
In the case of MEF, if you have many Exports that will satisfy an Import, you have two options:
[ImportMany]
. Decide, at runtime, which of the Imports to use for your contract, potentially just picking the first, or one at random.[ImportMany]
in conjunction with Metadata in order to decide which Import to use.