R
Richard Blewett [DevelopMentor]
OK, yes I forgot about domain neutral loaded assemblies - after playing with this for a while to make sure I wasn't smoking ;-) it only works for the type object and any reference type static members for a type in a domain neutral assembly though. Instances of domain neutral types are not themselves domain neutral.
Regards
Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
Richard,
IMO Monitors themselves are not Domain "specific", all depends on the type
you are taking a lock on. If you take a lock on a domain neutral type, you
will get a cross-domain lock, else you get a domain specific lock.
Willy.
Regards
Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
Richard Blewett said:Nope, Monitors are AppDomain specific.If you want to perform cross
AppDomain (including cross process) you will need to use Mutexes, Events
and other such kernel objects
Richard,
IMO Monitors themselves are not Domain "specific", all depends on the type
you are taking a lock on. If you take a lock on a domain neutral type, you
will get a cross-domain lock, else you get a domain specific lock.
Willy.