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)
精彩评论