question about Shared Policy in MEF with Silverlight
this is the table from the official MEF document
Part.Any Part.Shared Part.NonShared
Import.Any Shared Shared Non Shared
Import.Shared Shared Shared No Match
Import.NonShared Non Shared No Match Non Shared
My question is that for the "No Match" case(Export is shared but import is non-shared or reversely), which policy that the MEF will choose? (single or multiple instance) or just follow the 开发者_如何转开发policy from the Export?
thank you
"No Match" means that the part cannot satisfy the import requirements. MEF will refuse to make such a composition.
精彩评论