IAuditingHelper.cs 537 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Reflection;
  4. using System.Threading.Tasks;
  5. namespace Abp.Auditing
  6. {
  7. public interface IAuditingHelper
  8. {
  9. bool ShouldSaveAudit(MethodInfo methodInfo, bool defaultValue = false);
  10. AuditInfo CreateAuditInfo(Type type, MethodInfo method, object[] arguments);
  11. AuditInfo CreateAuditInfo(Type type, MethodInfo method, IDictionary<string, object> arguments);
  12. void Save(AuditInfo auditInfo);
  13. Task SaveAsync(AuditInfo auditInfo);
  14. }
  15. }