Search code examples
c#-2.0.net-remoting

.Net Remoting Question


My understanding of .Net Remoting is limited (and probably imperfect), so please bear with me.

I've created a service that is hosting a singleton remoted object. It appears that the remoted object doesn't exist until a client attaches to the remoted object. Is this true? If so, how can I create an instance of the object in the service?

Thanks Paul.


Solution

  • Thanks for you answer!
    Actually, I found a way to get what I wanted. The key is that the object that is being hosted for remoting (as a singleton) needs to be a thin wrapper for an actual singleton object (as in Singleton<>). This way the base object will be created no matter what and the remotely hosted object will then be a wrapper for the internal singleton.