/// <summary>
        /// Creates a new <see cref="Spring.Aop.Framework.ReflectiveMethodInvocation"/> 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 ReflectiveMethodInvocation(Proxy, Target, Method, ProxyMethod, Arguments, TargetType, Interceptors);

            rmi.CurrentInterceptorIndex = CurrentInterceptorIndex + 1;

            return(rmi);
        }
Example #2
0
        /// <summary>
        /// Creates a new <see cref="Spring.Aop.Framework.ReflectiveMethodInvocation"/> 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)
        {
            ReflectiveMethodInvocation rmi = new ReflectiveMethodInvocation(
                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.ReflectiveMethodInvocation"/> 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 ReflectiveMethodInvocation(Proxy, Target, Method, ProxyMethod, Arguments, TargetType, Interceptors);
            rmi.CurrentInterceptorIndex = CurrentInterceptorIndex + 1;

            return rmi;
        }
        /// <summary>
        /// Creates a new <see cref="Spring.Aop.Framework.ReflectiveMethodInvocation"/> 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)
        {
            ReflectiveMethodInvocation rmi = new ReflectiveMethodInvocation(
                this.proxy, this.target, this.method, this.proxyMethod, this.arguments, this.targetType, this.interceptors);
            rmi.currentInterceptorIndex = this.currentInterceptorIndex + 1;

            return rmi;
        }