Create a simple console application that defines a IPlugin interface of
some kind, say something like this:
public interface IPlugin
{
void PerformSomeAction(System.IO.TextWriter output);
}
Then create "class library" assemblies that have classes that implement
said interface:
public class HelloWorldPlugin : MyConsoleApplication.Whatever.IPlugin
{
public HelloWorldPlugin()
{
}
public void PerformSomeAction(System.IO.TextWriter output)
{
output.WriteLine("Hello, World!");
}
}
public class GoodbyeWorldPlugin : MyConsoleApplication.Whatever.IPlugin
{
public GoodbyeWorldPlugin()
{
}
public void PerformSomeAction(System.IO.TextWriter output)
{
output.WriteLine("Goodbye, cruel... cruel... World!");
}
}
Then use reflection to load those assemblies at run-time, and call the
PerformSomeAction() method on the classes, passing Console.Out or
something along those lines.
Something like that?
Good luck,
Sean