예제 #1
0
        public override object Intercept(DispatchProxyInvocation invocation)
        {
            if (this.Interceptor == null)
            {
                throw new InterceptorNullException("Interceptor is null, you should assign a value before calling Intercept.");
            }

            invocation.Target = this.Target;
            return(this.Interceptor.Intercept(invocation));
        }
예제 #2
0
        protected override object Invoke(MethodInfo targetMethod, object[] args)
        {
            var dispatchProxyInvocation = new DispatchProxyInvocation(targetMethod, args, null);

            return(this.Intercept(dispatchProxyInvocation));
        }
예제 #3
0
 public abstract object Intercept(DispatchProxyInvocation dispatchProxyInvocation);