Beispiel #1
0
        /// <summary>
        /// 调用拦截的方法
        /// </summary>
        /// <param name="invocation"></param>
        public void Intercept(Castle.DynamicProxy.IInvocation invocation)
        {
            var invocate = new InnerInvocation(invocation);

            this.PreProceed(invocate);
            this.PerformProceed(invocate);
            this.PostProceed(invocate);
        }
        /// <summary>
        /// 调用拦截的方法
        /// </summary>
        /// <param name="invocation"></param>
        public void Intercept(Castle.DynamicProxy.IInvocation invocation)
        {
            var invocate = new InnerInvocation(invocation);

            this.PreProceed(invocate);
            this.PerformProceed(invocate);
            this.PostProceed(invocate);
        }
Beispiel #3
0
 public virtual void Execute()
 {
     if (NextProxy != null)
     {
         NextProxy.Execute();
     }
     else
     {
         InnerInvocation.Proceed();
     }
 }