[Mono-list] AppDomain

Paolo Molaro lupus@ximian.com
Mon, 24 Feb 2003 22:04:22 +0100

On 02/24/03 Daniel Lopez wrote:
> > I am quite unsure if we will support such things. Cant you put that code
> > into a managed method?
> thanks! that made the trick, I added:
> public void ProcessRequest2 ()
> {
> Console.WriteLine("Process2 request AppDomain: " + AppDomain.CurrentDomain.FriendlyName);
> this.ProcessRequest();
> }
> Main Domain: testing
> Process2 request AppDomain: testing
> Process request AppDomain: 175a9821
> The reason for not supporting doing this directly from C, is that you have not
> found a need for it or because it is 'bad practice'?

I think we want the functionality available also from unmanaged code,
but nobody had the need for it until now and nobody stepped up to
contribute the necessary code:-)
As a rule, though: if something can be done from managed code
it's better. Of course, it doesn't make much sense to enter managed code
just to do something and then returning: the best approach would be to
enter and stay in the managed world most of the time. Not sure this is
can be done cleanly in your application, though.


lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better