y_zyx
y_zyx

Reputation: 642

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 application. How can I achieve it. I would like to use it with my web application also.

Upvotes: 0

Views: 589

Answers (2)

Dariusz Tarczynski
Dariusz Tarczynski

Reputation: 16711

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)

Upvotes: 0

StanislawSwierc
StanislawSwierc

Reputation: 2591

MEF is probably the easiest solution:

http://mef.codeplex.com/

Upvotes: 2

Related Questions