Hi
I've been trying to create an object within a Windows Service and then publish the object in the constructor of the remote object i.e within itself. I can't seem to get this to work though I can only ever publish the object within the Service object using Remoting.Configure. My Windows Service ends up setting up the remote object and then making a call as if it were a client in order to activate the remote object. This does not seem a very elegant approach.
Does anyone know if it is possible to publish an object within its constructor? I should then be able to more easily serialize and deserialize the object.
Does anyone know if it is possible to create an object and activate it on the server without the server having to act like a client?
Matt
I've been trying to create an object within a Windows Service and then publish the object in the constructor of the remote object i.e within itself. I can't seem to get this to work though I can only ever publish the object within the Service object using Remoting.Configure. My Windows Service ends up setting up the remote object and then making a call as if it were a client in order to activate the remote object. This does not seem a very elegant approach.
Does anyone know if it is possible to publish an object within its constructor? I should then be able to more easily serialize and deserialize the object.
Does anyone know if it is possible to create an object and activate it on the server without the server having to act like a client?
Matt