Hi,

I'm writing an automation module that is designed to fire various jobs
(created as assemblies implementing a given interface). I'm using
AppDomains to create an instance of the job (via the interface so I
don't load the assemblies into my original AppDomain).

The issue I have is that the jobs are asynchronous however I'm having a
hard time detecting when they're finished. If I try to add any events,
then the new AppDomain wants to load my service assembly.

If the AppDomain goes out of scope, I presume the code in it will still
execute? And will it ever unload? I've searched the net for best
practises on AppDomains, but can find very little on this type of issue
- most is the basics of how to create one, perform an action and then
unload it. Some of my jobs are only a few seconds long, others several
hours, so I don't really want to run them synchronously.

Cheers,
Dino

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to