Example #1
0
 /// <summary>
 /// �����ʽʵ��������
 /// </summary>
 /// <param name="engine"></param>
 /// <returns></returns>
 public static object WrapInterface(Type engine)
 {
     ProxyInterceptor proxyInterceptor = new ProxyInterceptor();
     ProxyGenerator generator = new ProxyGenerator();
     object proxy = generator.CreateClassProxy(engine, proxyInterceptor);
     return proxy;
 }
Example #2
0
        /// <summary>
        /// 代理方式实例化对象
        /// </summary>
        /// <param name="engine"></param>
        /// <returns></returns>
        public static object WrapInterface(Type engine)
        {
            ProxyInterceptor proxyInterceptor = new ProxyInterceptor();
            ProxyGenerator   generator        = new ProxyGenerator();
            object           proxy            = generator.CreateClassProxy(engine, proxyInterceptor);

            return(proxy);
        }