Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / November 2004

Tip: Looking for answers? Try searching our database.

Plug-In Models in .NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Saradhi - 30 Nov 2004 14:45 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.