Add Plugins to Your App 2: Search dynamically for plugins without Config Files

My blog has moved.
You can view this post at the following address:
http://www.osherove.com/blog/2003/5/30/add-plugins-to-your-app-2-search-dynamically-for-plugins-wit.html
Published Friday, May 30, 2003 11:32 PM by RoyOsherove
Filed under:

Comments

Friday, May 30, 2003 7:32 PM by TrackBack

# ISerializable

ISerializable
Friday, May 30, 2003 7:32 PM by TrackBack

# ISerializable

ISerializable
Wednesday, July 09, 2003 5:42 AM by Joerg Hilger

# re: Add Plugins to Your App 2: Search dynamically for plugins without Config Files

Nice Articel -
Can you provide the source for that too?
Wednesday, July 23, 2003 11:41 AM by GeheimnisNacht

# re: Add Plugins to Your App 2: Search dynamically for plugins without Config Files

Great, this is some good stuff. I am totally new to progamming in the .NET-environment, and I needed some plugin stuff.

Well written article, all is clear. You seem like a bright fellow :)


Cheers,
GeheimnisNacht
Thursday, August 21, 2003 2:27 PM by Roy Osherove

# re: Add Plugins to Your App 2: Search dynamically for plugins without Config Files

Here's the direct link to the zip file with the code to this article :
http://msdnaa.net/Legacy/Download.asp?Filename=Plugins_Dynamic_srcII.zip&ResID=2197&FileID=585
Monday, September 29, 2003 11:55 AM by id

# Assembly.Load()

It is probably worth stating in the beginning of the article that unless a dynamic update of plugins is required "Assembly.Load(string path)" will do the job. In other words, unless the application is required to allow updating loaded plugins without restarting it (e.g. it's a server) there is no need to resort to a complex loading/unloading routine.

I know it is mentioned in the linked article on MSDN but for a new user reading this article it might appear that using AppDomain-based loading is the only way of loading plugins dynamicaly, therefore it might be useful re-iterating it in the beginning.

Hope it's useful.

ID
Tuesday, March 16, 2004 3:37 PM by TrackBack

# Simple Plug-in Architecture

Tuesday, March 16, 2004 3:37 PM by TrackBack

# Simple Plug-in Architecture

Tuesday, March 16, 2004 4:34 PM by TrackBack

# Simple Plug-in Architecture

Thursday, March 25, 2004 5:43 AM by TrackBack

# Roy Osherove on building a plug in architecture for your application

Monday, April 12, 2004 7:26 AM by Bnaya Eshet

# re: Add Plugins to Your App 2: Search dynamically for plugins without Config Files

you forgot to say that the Royo.PluggableApp.PluginFinder class mast inherit MarshalByRefObject
in order to be operate under different AppDomain

:)

([Serialization] won't do the work because it will deserialize into the main AppDomain)
Thursday, July 01, 2004 6:36 AM by YBN

# re: Add Plugins to Your App 2: Search dynamically for plugins without Config Files

The source isn't available for download anymore.
Any other place I could download?

Great article btw! :D
Monday, August 02, 2004 3:37 PM by TrackBack

# re: Add Plugins to Your .NET App

Monday, May 23, 2005 4:23 AM by TrackBack

# Note to Self: Plugins and Reflection

Here's a decent article on plugins and reflection from the Roy Osherove's blog.  The blog discusses...
Friday, September 22, 2006 5:26 AM by nubie

# re: Add Plugins to Your App 2: Search dynamically for plugins without Config Files

So sorry for commenting on what's an old post, but... As someone already pointed out the link http://msdnaa.net/Legacy/Download.asp?Filename=Plugins_Dynamic_srcII.zip&ResID=2197&FileID=585 isn't working?! Any other place where one can find your source code, please...
Saturday, September 23, 2006 7:53 AM by nubie

# re: Add Plugins to Your App 2: Search dynamically for plugins without Config Files

Seems my previous comment didn't make the cut, why?! Cause of the bold formatting I used? Please don't be offended, I didn't mean dissrespect, but I'm really in need of seeing some working souce code that will do what you've described, please!? Any other place where one can download it from 'cause the link you gave here isn't working anymore. TIA
Saturday, September 23, 2006 7:57 AM by nubie

# re: Add Plugins to Your App 2: Search dynamically for plugins without Config Files

Nevermind my previous comment, I think I've managed to find the download on the MS site. I had to search by your surname (even though when I searched yesterday based on article name I came up whit squat, nada, nichts :)... TIA again.
Saturday, September 23, 2006 8:00 AM by nubie

# re: Add Plugins to Your App 2: Search dynamically for plugins without Config Files

Me agian. Just one more note, I think you should know your article's been placed in ASP.NET web application dev section. HAve a look for yourself: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/searchforplugins.asp And here's the URL for the code: http://download.microsoft.com/download/7/2/e/72e64769-58d2-4a91-9686-a1a160bb1bc8/DynamicPlugins.msi
Saturday, September 23, 2006 11:58 AM by RoyOsherove

# re: Add Plugins to Your App 2: Search dynamically for plugins without Config Files

Sorry for taking so much time to answer this.

I've made the doanloads for both articles available from my server:

For this article:

http://files.osherove.com/Plugins_Dynamic_src.zip

for the previous article:

http://files.osherove.com/Plugins_demo.zip

http://files.osherove.com/Plugins_src.zip

Roy.