System.Runtime.Remoting.RemotingServices.GetEnvoyChainForProxy C# (CSharp) Method

GetEnvoyChainForProxy() private method

private GetEnvoyChainForProxy ( MarshalByRefObject obj ) : IMessageSink
obj System.MarshalByRefObject
return IMessageSink
        public static IMessageSink GetEnvoyChainForProxy(MarshalByRefObject obj)
        {
            IMessageSink envoyChain = null;

            // Extract the envoy chain only if the object is a proxy
            if(IsObjectOutOfContext(obj))
            {
                RealProxy rp = GetRealProxy(obj);   
                Identity id = rp.IdentityObject;
                if(null != id)
                {
                    envoyChain = id.EnvoyChain;
                }
            }

            return envoyChain;
        }
RemotingServices