开发者

Is it possible to change how MEF creates imported objects?

I would like to use MEF to find my extensions but keep the responsibility for creating them to Ninject or a custom factory. Is tha开发者_运维知识库t possible?


See the article: "Export Providers and Custom factories with MEF", by Glenn Block http://codebetter.com/blogs/glenn.block/archive/2008/11/30/export-providers-and-custom-factories-with-mef.aspx.

You can read some bits about possibilities to use custom factories.

In this article, you will see links to 2 other, by Matt Hawley: "MEF + Factories", and "MEF + Factories Using an Export Provider"

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜