Sorry for the lack of response.  I've been trying to get an updated sample
[1] on gotdotnet.  I've haven't successfully got it there yet.  Hopefully by
tomorrow...

>     I don't know what the Type parameter in the protected RealProxy
> contructors means.

Basically, it's the runtime type of the object exposed by the transparent
proxy.  The type must itself be, or derive from MarshalByRefObject, or it
must be an interface.  I believe the documentation is a little confusing on
this.

> In the Interposer sample, the RealProxy
> subclass calls
> the super-class passing it the typeof(MarshalByRefObject)
> parameter, but
> *any* interface type works.

The Interposer class does not demand that the type being wrapped inherit
from MarshalByRefObject.  It gets away with this by faking out the RealProxy
in passing typeof(MarshalByRefObject) in the RealProxy constructor.  I've
got an updated sample that passes typeof(IInterposer) instead of MBRO.
IInterposer allows you to obtained the wrapped target.


[1] http://www.gotdotnet.com/userfiles/JimSievert/Interposer.zip

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to