Beispiel #1
0
        public object Create(Type proxyType, IInterceptor interceptor, params Type[] interfaces)
        {
            var adapter = new LinFuInterceptorAdapter(interceptor, null);

            return(factory.CreateProxy(proxyType, adapter, interfaces));
        }
Beispiel #2
0
        public TProxy Create <TProxy>(TProxy target, IInterceptor interceptor, params Type[] interfaces)
        {
            var adapter = new LinFuInterceptorAdapter(interceptor, target);

            return(factory.CreateProxy <TProxy>(adapter, interfaces));
        }