Plugin architecture

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

Is there a way to write a "plug-in" that can be used with both a winform app
and a windows service? If so, how?

Thanks

Regards
 
01: Write an assembly that has the interfaces you need for the plugins.
02: Write your plugins so that they implement the necessary interfaces.

Now all you need to do is to have a config file or something that lists
assembly/class names which implement plugins then create instances of those.
Alternatively you could load every DLL in the current bin folder and reflect
over it for classes implementing your plugin.



Pete
 
Back
Top