Exemplo n.º 1
0
 // These channel methods exist only to implement additional channel interfaces for ServiceChannelProxy.
 // This is required because clients can down-cast typed proxies to the these channel interfaces.
 // On the desktop, the .Net Remoting layer allowed that type cast, and subsequent calls against the
 // interface went back through the RealProxy and invoked the underlying ServiceChannel.
 // Net Native and CoreClr do not have .Net Remoting and therefore cannot use that mechanism.
 // But because typed proxies derive from ServiceChannelProxy, implementing these interfaces
 // on ServiceChannelProxy permits casting the typed proxy to these interfaces.
 // All interface implementations delegate directly to the underlying ServiceChannel.
 T IChannel.GetProperty <T>()
 {
     return(_serviceChannel.GetProperty <T>());
 }