ILogHandler.cs 491 B

12345678910111213141516171819
  1. using Microsoft.AspNetCore.Mvc.Filters;
  2. using System.Threading.Tasks;
  3. namespace Admin.Core.Logs
  4. {
  5. /// <summary>
  6. /// 操作日志处理接口
  7. /// </summary>
  8. public interface ILogHandler
  9. {
  10. /// <summary>
  11. /// 写操作日志
  12. /// </summary>
  13. /// <param name="context"></param>
  14. /// <param name="next"></param>
  15. /// <returns></returns>
  16. Task LogAsync(ActionExecutingContext context, ActionExecutionDelegate next);
  17. }
  18. }