Inheritance: IInvocationHandler
Exemple #1
0
        public Object UseService(Type type)
        {
            PHPRPC_InvocationHandler handler = new PHPRPC_InvocationHandler(this);

            if (type.IsInterface)
            {
                return(DynamicProxy.NewInstance(AppDomain.CurrentDomain, new Type[] { type }, handler));
            }
            else
            {
                return(DynamicProxy.NewInstance(AppDomain.CurrentDomain, type.GetInterfaces(), handler));
            }
        }
Exemple #2
0
        public Object UseService(Type[] interfaces)
        {
            PHPRPC_InvocationHandler handler = new PHPRPC_InvocationHandler(this);

            return(DynamicProxy.NewInstance(AppDomain.CurrentDomain, interfaces, handler));
        }