GetMethodBase() private method

private GetMethodBase ( ) : MethodBase
return System.Reflection.MethodBase
Ejemplo n.º 1
0
        public MethodResponse(Header[] h1, IMethodCallMessage mcm)
        {
            if (mcm == null)
            {
                throw new ArgumentNullException("mcm");
            }
            Message message = mcm as Message;

            if (message != null)
            {
                this.MI = message.GetMethodBase();
            }
            else
            {
                this.MI = mcm.MethodBase;
            }
            if (this.MI == null)
            {
                throw new RemotingException(string.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Message_MethodMissing"), new object[] { mcm.MethodName, mcm.TypeName }));
            }
            this._methodCache = InternalRemotingServices.GetReflectionCachedData(this.MI);
            this.argCount     = this._methodCache.Parameters.Length;
            this.fSoap        = true;
            this.FillHeaders(h1);
        }