I have a transparent proxy, for instance one generated by WCF:
ChannelFactory<ICalculator> channelFactory =
new ChannelFactory<ICalculator>(
new NetNamedPipeBinding(),
"net.pipe://localhost/WcfTransparentProxy/Calculator" );
ICalculator calculator = channelFactory.CreateChannel();
How do I get the RealProxy from the transparent proxy?
There's a function in RemotingServices specifically for this:
System.Runtime.Remoting.RemotingServices.GetRealProxy( transparentProxy );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With