We use application config file, i.e. developer will add enteries for their plugin's under specified well known section in the config file.
We don't use this techinque for the requirement you are looking for, but we use it for ISAPI filter plugin's. >From: Shawn Van Ness <[EMAIL PROTECTED]> >Reply-To: "Moderated discussion of advanced .NET topics." ><[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: [ADVANCED-DOTNET] Component Categories for .NET? >Date: Sun, 7 Apr 2002 10:23:59 -0700 > >Back in the days of COM, I used to enjoy building "plugin" architectures... >You know: design an interface (plus maybe an implementation or two), >publish it, and allow other devs to integrate their alternate >implementations with my app, at run-time. > >I was a big fan of CLSID_StdComponentCategoriesMgr, for this reason. > >Sure, it didn't really do anything that I couldn't have done myself -- say, >by dictating that all plugin authors register their components' CLSIDs >under "HKLM/SOFTWARE/My App/Plugins", or whatever. > >But it felt comforting and wholesome to have a standard, sanctioned way to >implement this pattern. And it was optimized quite nicely, as I recall. > >Well, for the life of me, I can't figure out the best way to accomplish >this same design in .NET... are we just supposed to use Reflection, to >search through the various assemblies in our application's path? That >seems a little heavy-handed. > >I could enforce my own assembly/type-lookup scheme in the registry, >something like "HKLM/SOFTWARE/My App/Plugins", but that seems a little >hokey (and possibly even Win32-specific). > >Any ideas? How are other folks doing this? > >(This is a bit of a FAQ -- I see lots of questions on the unmod list, but >no answers other than "here's some reflection code to instantiate a type, >from a given assembly"... which is not the same thing.) > >-S > >You can read messages from the Advanced DOTNET archive, unsubscribe from >Advanced DOTNET, or >subscribe to other DevelopMentor lists at http://discuss.develop.com. _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.