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