By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,424 Members | 1,375 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,424 IT Pros & Developers. It's quick & easy.

plugin architecture with c#/.net dlls

P: n/a
I'm trying to write an application that takes plugins. I'd like to be
able to drop a dll into my apps directory and have the app see it on
loading (easy to do) then load the dll and interogate it to see if it
has a particular class or interface is implemented. If so I'll call
it etc.

My question is: Given that I have an interface defined
(MyPluginInterface) how do I go about taking a strange dll and
interogating it to see if it supports it then instance that
class/interface.

any help would be greatly appreciated.

thanks
Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
You are in luck, my first article on plug-ins examines all of the methods for
interrogating
a library for plug-ins to load. You can view it on my blog at the below link.
To answer
the obvious questions, I'll definitely be keeping this code up to date, and I
have a couple
more articles on the platter just about ready to go out that discuss concepts
further into
the plug-in architecture. My main block at this time, is an extremely stringent
set of design
goals that I'm writing about in a kind of pre-amble document describing my end
goals. I
should be done with the goal document this weekend, and maybe Part 2 where I'll
show
all of the various methods for actually loading and working with plug-in types.

http://weblogs.asp.net/justin_rogers...les/61042.aspx
--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers
"Allen Anderson" <al***@sparkysystems.com> wrote in message
news:9v********************************@4ax.com...
I'm trying to write an application that takes plugins. I'd like to be
able to drop a dll into my apps directory and have the app see it on
loading (easy to do) then load the dll and interogate it to see if it
has a particular class or interface is implemented. If so I'll call
it etc.

My question is: Given that I have an interface defined
(MyPluginInterface) how do I go about taking a strange dll and
interogating it to see if it supports it then instance that
class/interface.

any help would be greatly appreciated.

thanks

Nov 15 '05 #2

P: n/a
excellent work man, thanks!

On Fri, 6 Feb 2004 15:45:27 -0800, "Justin Rogers"
<Ju****@games4dotnet.com> wrote:
You are in luck, my first article on plug-ins examines all of the methods for
interrogating
a library for plug-ins to load. You can view it on my blog at the below link.
To answer
the obvious questions, I'll definitely be keeping this code up to date, and I
have a couple
more articles on the platter just about ready to go out that discuss concepts
further into
the plug-in architecture. My main block at this time, is an extremely stringent
set of design
goals that I'm writing about in a kind of pre-amble document describing my end
goals. I
should be done with the goal document this weekend, and maybe Part 2 where I'll
show
all of the various methods for actually loading and working with plug-in types.

http://weblogs.asp.net/justin_rogers...les/61042.aspx


Nov 15 '05 #3

P: n/a

Hi Allen,

I am glad you got what you want.

If you have further concern, please feel free to post, we will help you.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.