开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜