/// <summary> /// Creates a new <see cref="Spring.Aop.Framework.DynamicMethodInvocation"/> instance /// from the specified <see cref="AopAlliance.Intercept.IMethodInvocation"/> and /// increments the interceptor index. /// </summary> /// <param name="invocation"> /// The current <see cref="AopAlliance.Intercept.IMethodInvocation"/> instance. /// </param> /// <returns> /// The new <see cref="AopAlliance.Intercept.IMethodInvocation"/> instance to use. /// </returns> protected override IMethodInvocation PrepareMethodInvocationForProceed(IMethodInvocation invocation) { var rmi = new DynamicMethodInvocation(Proxy, Target, Method, ProxyMethod, Arguments, TargetType, Interceptors); rmi.CurrentInterceptorIndex = CurrentInterceptorIndex + 1; return(rmi); }
/// <summary> /// Creates a new <see cref="Spring.Aop.Framework.DynamicMethodInvocation"/> instance /// from the specified <see cref="AopAlliance.Intercept.IMethodInvocation"/> and /// increments the interceptor index. /// </summary> /// <param name="invocation"> /// The current <see cref="AopAlliance.Intercept.IMethodInvocation"/> instance. /// </param> /// <returns> /// The new <see cref="AopAlliance.Intercept.IMethodInvocation"/> instance to use. /// </returns> protected override IMethodInvocation PrepareMethodInvocationForProceed(IMethodInvocation invocation) { DynamicMethodInvocation rmi = new DynamicMethodInvocation( this.proxy, this.target, this.method, this.proxyMethod, this.arguments, this.targetType, this.interceptors); rmi.currentInterceptorIndex = this.currentInterceptorIndex + 1; return(rmi); }
/// <summary> /// Creates a new <see cref="Spring.Aop.Framework.DynamicMethodInvocation"/> instance /// from the specified <see cref="AopAlliance.Intercept.IMethodInvocation"/> and /// increments the interceptor index. /// </summary> /// <param name="invocation"> /// The current <see cref="AopAlliance.Intercept.IMethodInvocation"/> instance. /// </param> /// <returns> /// The new <see cref="AopAlliance.Intercept.IMethodInvocation"/> instance to use. /// </returns> protected override IMethodInvocation PrepareMethodInvocationForProceed(IMethodInvocation invocation) { DynamicMethodInvocation rmi = new DynamicMethodInvocation( this.proxy, this.target, this.method, this.proxyMethod, this.arguments, this.targetType, this.interceptors); rmi.currentInterceptorIndex = this.currentInterceptorIndex + 1; return rmi; }
/// <summary> /// Creates a new <see cref="Spring.Aop.Framework.DynamicMethodInvocation"/> instance /// from the specified <see cref="AopAlliance.Intercept.IMethodInvocation"/> and /// increments the interceptor index. /// </summary> /// <param name="invocation"> /// The current <see cref="AopAlliance.Intercept.IMethodInvocation"/> instance. /// </param> /// <returns> /// The new <see cref="AopAlliance.Intercept.IMethodInvocation"/> instance to use. /// </returns> protected override IMethodInvocation PrepareMethodInvocationForProceed(IMethodInvocation invocation) { var rmi = new DynamicMethodInvocation(Proxy, Target, Method, ProxyMethod, Arguments, TargetType, Interceptors); rmi.CurrentInterceptorIndex = CurrentInterceptorIndex + 1; return rmi; }