开发者

Mef and Configuration File Settings

New to Mef so I m on a discovery tour. I was wondering whether you could read from Configuration file like Unity does.

I me开发者_运维技巧an configure an Interface and mapto a class and sort of resolve it.

Lets take an example "Plugins" I could take the approach of creating a folder "Plugins" and MEF would happily read all the plugins. What about if I wanted to define the classes/interfaces I want to use in a config file like unity. Can this be done or Am I missing the point with mef?

Thanks a lot


MEF doesn't support this by default. I believe there is a configuration-based programming model on MefContrib that does this.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜