コード例 #1
0
 internal MethodResponse(IMethodCallMessage msg, object handlerObject, BinaryMethodReturnMessage smuggledMrm)
 {
     if (msg != null)
     {
         this.MI           = msg.MethodBase;
         this._methodCache = InternalRemotingServices.GetReflectionCachedData(this.MI);
         this.methodName   = msg.MethodName;
         this.uri          = msg.Uri;
         this.typeName     = msg.TypeName;
         if (this._methodCache.IsOverloaded())
         {
             this.methodSignature = (Type[])msg.MethodSignature;
         }
         this.argCount = this._methodCache.Parameters.Length;
     }
     this.retVal      = smuggledMrm.ReturnValue;
     this.outArgs     = smuggledMrm.Args;
     this.fault       = smuggledMrm.Exception;
     this.callContext = smuggledMrm.LogicalCallContext;
     if (smuggledMrm.HasProperties)
     {
         smuggledMrm.PopulateMessageProperties(this.Properties);
     }
     this.fSoap = false;
 }
コード例 #2
0
        internal MethodResponse(IMethodCallMessage msg,
                                Object handlerObject,
                                BinaryMethodReturnMessage smuggledMrm)
        {
            if (msg != null)
            {
                _methodBase = (MethodBase)msg.MethodBase;
//                _methodCache = InternalRemotingServices.GetReflectionCachedData(MI);

                _methodName = msg.MethodName;
                _uri        = msg.Uri;
//                _typeName = msg.TypeName;

//                if (_methodCache.IsOverloaded())
//                    _methodSignature = (Type[])msg.MethodSignature;

//                argCount = _methodCache.Parameters.Length;
            }

            _returnValue = smuggledMrm.ReturnValue;
            _args        = smuggledMrm.Args;
            _exception   = smuggledMrm.Exception;

            _callContext = smuggledMrm.LogicalCallContext;

            if (smuggledMrm.HasProperties)
            {
                smuggledMrm.PopulateMessageProperties(Properties);
            }
        }
コード例 #3
0
ファイル: Message.cs プロジェクト: sjyanxin/WPFSource
        [System.Security.SecurityCritical]  // auto-generated 
        internal MethodResponse(IMethodCallMessage msg,
                                Object handlerObject, 
                                BinaryMethodReturnMessage smuggledMrm)
        {

            if (msg != null) 
            {
                MI = (MethodBase)msg.MethodBase; 
                _methodCache = InternalRemotingServices.GetReflectionCachedData(MI); 

                methodName = msg.MethodName; 
                uri = msg.Uri;
                typeName = msg.TypeName;

                if (_methodCache.IsOverloaded()) 
                    methodSignature = (Type[])msg.MethodSignature;
 
                argCount = _methodCache.Parameters.Length; 

            } 

            retVal = smuggledMrm.ReturnValue;
            outArgs = smuggledMrm.Args;
            fault = smuggledMrm.Exception; 

            callContext = smuggledMrm.LogicalCallContext; 
 
            if (smuggledMrm.HasProperties)
                smuggledMrm.PopulateMessageProperties(Properties); 

            fSoap = false;
        }