I have been working my way through the .NET Remoting Overview at http://msdn.microsoft.com/en-us/library/kwdt6w2k(v=VS.71).aspx , and I don't understand a couple of things, hope someone here can shed some light.
In the Building a Basic .NET Remoting Remoting Application section, three assemblies are described:
- a remotable type, living in a class library .DLL
- a host app, with a reference to the remotable-type class library
a client app
The client app contains a line like (C# here)
RemotableType remotableObj = new RemotableType()
;
In order for that line to compile, the client app has to have a reference to the remotable-type class library...right? And, if it has this reference to that type definition, why isn't that line just instantiating the RemotableType in-process, as it were? I don't understand how the RemotableType instance is getting loaded in the host app's app domain.
Please enlighten (or direct me to a more introductory reference?)