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

Wednesday, July 9, 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
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
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 1, 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
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.