[Mono-list] AppDomain

Daniel Lopez daniel@rawbyte.com
Mon, 24 Feb 2003 11:31:04 -0800


> > I am looking for the correct way to call a method in a transparent proxy
> > from the C side of mono. When I create an object in a different AppDomain
> > and call it from C# everything is fine, but when I do it from C, it gets
> > executed in the same domain.
> > I attach some sample code to demonstrate what I mean.
> 
> 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'?

Best regards

Daniel