Example #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));
        }
Example #2
0
        protected override object Invoke(MethodInfo targetMethod, object[] args)
        {
            var dispatchProxyInvocation = new DispatchProxyInvocation(targetMethod, args, null);

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