public void BeginAround(InterceptedMethod method)
        {
            this.interceptedMethod = method;

            this.stopwatch.Reset();
            this.stopwatch.Start();
        }
        public void OnException(InterceptedMethod method, Exception ee)
        {
            string methodPath = method.Target.GetType().ToString() + "." + method.MethodName;

            int    index          = 0;
            string methodParaInfo = "<Parameters>";

            foreach (object para in method.Arguments)
            {
                if (para != null)
                {
                    methodParaInfo += string.Format("<Para{0}>{1}</Para{0}>", index++, para);
                }
            }

            methodParaInfo += "</Parameters>";

            this.exceptionFilter.Filter(ee, methodPath, methodParaInfo);
        }
 public void BeginAround(InterceptedMethod method)
 {
 }
 public void PostProcess(InterceptedMethod method, object returnVal)
 {
 }
 public void PreProcess(InterceptedMethod method)
 {
 }
 public void OnException(InterceptedMethod method, Exception ee)
 {
     this.stopwatch.Stop();
     this.stopwatch.Reset();
     this.objectPool.GiveBack(this);
 }
Esempio n. 7
0
 public void OnException(InterceptedMethod method, Exception ee)
 {
 }