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); }
public override void OnEntry(MethodExecutionArgs args) { _customLogger.LogBeforeCall(args.Method, args.Arguments.ToArray()); }