Plugin architecture

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
 
P

Peter Morris

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top