public void Intercept(IInvocation invocation)
 {
     _logger.LogBeforeCall(invocation.Method, invocation.Arguments);
     invocation.Proceed();
     _logger.LogAfterCall(invocation.Method.Name, invocation.ReturnValue);
 }
        public override void OnEntry(MethodExecutionArgs args)
        {
            var log = _customLogger.LogBeforeCall(args.Method, args.Method.GetParameters());

            Console.WriteLine(log);
        }
Exemple #3
0
 public override void OnEntry(MethodExecutionArgs args)
 {
     _customLogger.LogBeforeCall(args.Method, args.Arguments.ToArray());
 }