internal static ServiceChannel GetServiceChannel(object transparentProxy) { IChannelBaseProxy proxy = transparentProxy as IChannelBaseProxy; if (proxy != null) { return(proxy.GetServiceChannel()); } ServiceChannelProxy realProxy = RemotingServices.GetRealProxy(transparentProxy) as ServiceChannelProxy; if (realProxy != null) { return(realProxy.GetServiceChannel()); } return(null); }
internal static ServiceChannel GetServiceChannel(object transparentProxy) { IChannelBaseProxy cb = transparentProxy as IChannelBaseProxy; if (cb != null) { return(cb.GetServiceChannel()); } ServiceChannelProxy proxy = transparentProxy as ServiceChannelProxy; if (proxy != null) { return(proxy.GetServiceChannel()); } else { return(null); } }