Thursday, August 15, 2013

Remoting with MarshalByRefObject

It is possible to hand objects which inheirt from MarshalByRefObject in C# into an new AppDomain that is made and then destroyed in the current domain. This allows the objects to do their thing in a sandbox with memory and garbage collection independent of the default domain. This is called remoting and is the theme of chapter 24 of C# 4.0 in a Nutshell. I tried to create an example just now so I could show you some code but I couldn't get it working. Overall, I don't find this that interesting so I won't spend any more time on it.

No comments:

Post a Comment