Hi

I'm looking for a way to force serialization of an object that derives
indirectly from MarshalByRefObject when it's returned from a remote method
call.

I tried implementing ISerializable to no avail, and I'm trying to write
another class implementing ISerializationSurrogate to handle serialization
of the object.  But, I can't figure out how to register the surrogate so
that it works automatically with any formatters that remoting is using.

A little more info:  The class derives from Stream, which is MBR, but is
only a wrapper to call remote methods on another object and impersonate
Stream functionality.  I can construct this 'ClientStream' on the client
after I've already obtained a reference to the remote object, but I'd rather
construct it on the server side and serialize it back to the client.

On another issue, is there anyway to get a callback on the server when an
MBR object's lease expires?

Thanks in advance

Andy

_________________________________________________________________
Hotmail now available on Australian mobile phones. Go to
http://ninemsn.com.au/mobilecentral/hotmail_mobile.asp

Reply via email to