开发者

Mef and Configuration File Settings

开发者 https://www.devze.com 2023-01-10 18:25 出处:网络
New to Mef so I m on a discovery tour. I was wondering whether you could read from Configuration file like Unity does.

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

精彩评论

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