There's something I'm just not getting about .NET remoting. Well, two things actually:
Why is the emphasis back on classes that inherit from MarshalByRef instead of interfaces ala the original COM style (which I liked)?
Why is it that .NET remoting always forces you to effectively create some sort of object pool instead of allowing you to associate specific instances with a URL?
Server code:
RemotingConfiguration.RegisterWellKnownServiceType(typeof(RemotingTypes.Server), "MyURL", WellKnownObjectMode.Singleton);
Client code:
RemotingConfiguration.RegisterWellKnownServiceType(typeof(RemotingTypes.Server), "MyURL", WellKnownObjectMode.Singleton);
But suppose I want to create the "Server" instance myself and then just bind it to an endpoint?
RemotingTypes.Server myInstance = new RemotingTypes.Server();
What now? How can I associate "myInstance" with the URL "MyURL" ?