Esempio n. 1
0
        public Object makeProxy(IRuntimeServer runtime, int marshallFlags, int marshallDepth, ArrayList interfaceList)
        {
            Type[] interfaces = new Type[interfaceList.Count];
            for (int i = 0; i < interfaces.Length; i++)
            {
                interfaces[i] = RuntimeServer.typeArg(interfaceList[i]);
            }
            ProxyHandler handler = new ProxyHandler(runtime, marshallFlags, marshallDepth);

            return(Proxy.BuildProxy(new Proxy.InvocationDelegate(handler.invoke), interfaces));
        }
Esempio n. 2
0
 public Object makeProxy(IRuntimeServer runtime, int marshallFlags, int marshallDepth, ArrayList interfaceList)
 {
     Type[] interfaces = new Type[interfaceList.Count];
     for(int i=0;i<interfaces.Length;i++)
     interfaces[i] = RuntimeServer.typeArg(interfaceList[i]);
     ProxyHandler handler	=	new ProxyHandler(runtime,marshallFlags,marshallDepth);
     return Proxy.BuildProxy(new Proxy.InvocationDelegate(handler.invoke),interfaces);
 }