Hi all,
Can any one give details about plug-in models in .NET?
We have an application which will consists of a different documents, which will be displayed in 2 different tree views based on the type of document. and now we are dispatching to our clients. One of clients requires an additional document which is not necessary for others. So we need to implement the plug-in model which will extend the features of such documents. Even the plug in should consist the code to load the items from the db and should be embedded in the core dlls so that we can access the plug ins in both ways.
Basically our document base class consists the following
public class DocumentBase
{
string name;
DocumentInfo Info;
}
Are there any design patterns for the PlugIns in MSDN?
Any sample applications will be helpful.
Thanks In Advance
-SARADHI
Doug Holton - 30 Nov 2004 15:54 GMT
> Hi all,
>
> Can any one give details about plug-in models in .NET?
See Assembly.Load, and you should create an interface (in a separate
dll) that the plugins use and your application uses.
http://www.codeproject.com/csharp/PluginsInCSharp.asp
http://www.codeproject.com/csharp/DynamicPluginManager.asp
http://www.informit.com/articles/article.asp?p=332874
thechaosengine - 30 Nov 2004 16:48 GMT
Its all to do with Interfaces. Have your main code deal with a well known
interface that your "Documents" implement.
The code project site and the internet in general have a number articles on
how to do it. MS doesnt though
tce
Doug Holton - 30 Nov 2004 19:03 GMT
> The code project site and the internet in general have a number articles on
> how to do it. MS doesnt though
In my earlier note, I forgot to mention one from msdn magazine:
http://msdn.microsoft.com/msdnmag/issues/03/10/Plug-Ins/default.aspx