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)); }
protected override object Invoke(MethodInfo targetMethod, object[] args) { var dispatchProxyInvocation = new DispatchProxyInvocation(targetMethod, args, null); return(this.Intercept(dispatchProxyInvocation)); }
public abstract object Intercept(DispatchProxyInvocation dispatchProxyInvocation);