PropagateOutParameters() static private méthode

static private PropagateOutParameters ( IMessage msg, Object outArgs, Object returnValue ) : void
msg IMessage
outArgs Object
returnValue Object
Résultat void
Exemple #1
0
        private static void HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
        {
            IMethodReturnMessage methodReturnMessage = retMsg as IMethodReturnMessage;

            if (retMsg == null || methodReturnMessage == null)
            {
                throw new RemotingException(Environment.GetResourceString("Remoting_Message_BadType"));
            }
            Exception exception = methodReturnMessage.Exception;

            if (exception != null)
            {
                throw exception.PrepForRemoting();
            }
            if (!(retMsg is StackBasedReturnMessage))
            {
                if (reqMsg is Message)
                {
                    RealProxy.PropagateOutParameters(reqMsg, methodReturnMessage.Args, methodReturnMessage.ReturnValue);
                    return;
                }
                if (reqMsg is ConstructorCallMessage)
                {
                    RealProxy.PropagateOutParameters(reqMsg, methodReturnMessage.Args, null);
                }
            }
        }