开发者

how to use plugin in c#.net

开发者 https://www.devze.com 2023-03-06 22:26 出处:网络
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 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

精彩评论

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