A little did not understand how Metadata works in MEF.
- This example shows the ExportMetada attribute https://msdn.microsoft.com/en-us/library/dd460648(v=vs.110).aspx
How does MEF understand that it belongs to IOperationData? In the same attribute, the contract is clearly not written in the attribute. It turns out that due to this, IEnumerable<Lazy<IOperation, IOperationData>> operations; only understands IEnumerable<Lazy<IOperation, IOperationData>> operations; what is the metadad Confused by implicitness.
- If I understand correctly, then you can ask a few methods (which relate to different contracts). How can they be read in such a case?
Lazy<T,MetaData>necessary to useLazy<T,MetaData>to access the metadata?- Where I read that this is only 1 of the ways (using an attribute) to set the metadata. What other ways are there?