开发者

Is it possible to change how MEF creates imported objects?

开发者 https://www.devze.com 2023-01-18 18:54 出处:网络
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:

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

精彩评论

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