Ejemplo n.º 1
0
 // private static readonly ILog LOG = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
 public object Invoke(IMethodInvocation invocation)
 {
     System.Console.WriteLine("I'm in the AOP Invoke");
     LOG.Debug(String.Format("BaseServiceLogger intercepted call : about to invoke method '{0}'", invocation.Method.Name));
     object retVal = invocation.Proceed();
     string retString = new TORenderer(retVal).ToString();
     LOG.Debug(String.Format("BaseServiceLogger intercepted call : returned '{0}'", retString));
     return retVal;
 }
Ejemplo n.º 2
0
        // private static readonly ILog LOG = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        public object Invoke(IMethodInvocation invocation)
        {
            System.Console.WriteLine("I'm in the AOP Invoke");
            LOG.Debug(String.Format("BaseServiceLogger intercepted call : about to invoke method '{0}'", invocation.Method.Name));
            object retVal    = invocation.Proceed();
            string retString = new TORenderer(retVal).ToString();

            LOG.Debug(String.Format("BaseServiceLogger intercepted call : returned '{0}'", retString));
            return(retVal);
        }