开发者

how to use plugin in c#.net

I would like to use a plug-in(for example, ClearCanvas Image viewer) in my C#.Net windows 开发者_JAVA百科application. How can I achieve it. I would like to use it with my web application also.


MEF is probably the easiest solution:

http://mef.codeplex.com/


To achieve this you may use

  • MEF
  • IoC/DI techniques with scanning capabilities of DI container
  • Using Reflection to scan assmeblies that implemets certain Interface (IMyPlugin for example)
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜