AppDomains, the Hair Puller

T

Tibby

I have searched far and wide and still have a few blank spots to fill.
Here's what I'm after:

I have my main assembly in the main AppDomain. I have my plugins that
I want to load into a seperate AppDomain and run them there. Then,
when there's an update to one of the plugins, I just have to unload
the second AppDomain, reload the new plugins, and I have my assembly
updated without having to shut it down. This is mainly for system
services, but maybe even for WinForms.

I have found how to call a function in a class using a string
perameter, so I'm thinking along those lines.

After I get the AppDomains portion figure out, then I can get all the
other dynamics in place.


Thanks,
Tibby
 
T

Tibby

What is your question?

Okay, well, I know how to create a second appdomain, and how to load
assemblies into that second appdomain, but how do I call a function in
that second appdomain from the first?

Tibby
 
C

Chris Dunaway

I'm not 100% sure, but look at the methods of the AppDomain class.
Specifically, ExecuteAssembly, CreateInstance, and
CreateInstanceAndUnwrap.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

2 questions 2
ApplicationDomains 4
Loading plugins in separate AppDomains 6
AppDomains and Exceptions 8
AppDomains 2
AppDomains and shared Threadpool? 3
Trace across AppDomains 3
Appdomains and named events 1

Top