System.Runtime.Remoting.Messaging.MethodResponse.MethodResponse C# (CSharp) Method

MethodResponse() public method

public MethodResponse ( Header h1, IMethodCallMessage mcm ) : System
h1 Header
mcm IMethodCallMessage
return System
        public MethodResponse(Header[] h1, IMethodCallMessage mcm)
        {
            if (mcm == null)
                throw new ArgumentNullException("mcm");

            Message msg = mcm as Message;
            if (null != msg)
            {
                MI = (MethodBase)msg.GetMethodBase();
            }
            else
            {
                MI = (MethodBase)mcm.MethodBase;
            }
            if (MI == null)
            {
                throw new RemotingException(
                    String.Format(
                        CultureInfo.CurrentCulture, Environment.GetResourceString(
                            "Remoting_Message_MethodMissing"),
                        mcm.MethodName,
                        mcm.TypeName));
            }
            
            _methodCache = InternalRemotingServices.GetReflectionCachedData(MI);
            
            argCount = _methodCache.Parameters.Length;
            fSoap = true;
            FillHeaders(h1);
        }

Same methods

MethodResponse::MethodResponse ( IMethodCallMessage msg, Object handlerObject, BinaryMethodReturnMessage smuggledMrm ) : System
MethodResponse::MethodResponse ( IMethodCallMessage msg, System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage smuggledMrm, ArrayList deserializedArgs ) : System
MethodResponse::MethodResponse ( SerializationInfo info, StreamingContext context ) : System