Class AuditingHelper
Inheritance
AuditingHelper
Assembly: Volo.Abp.Auditing.dll
Syntax
public class AuditingHelper : IAuditingHelper, ITransientDependency
Constructors
AuditingHelper(IAuditSerializer, IOptions<AbpAuditingOptions>, ICurrentUser, ICurrentTenant, ICurrentClient, IClock, IAuditingStore, ILogger<AuditingHelper>, IServiceProvider, ICorrelationIdProvider)
Declaration
public AuditingHelper(IAuditSerializer auditSerializer, IOptions<AbpAuditingOptions> options, ICurrentUser currentUser, ICurrentTenant currentTenant, ICurrentClient currentClient, IClock clock, IAuditingStore auditingStore, ILogger<AuditingHelper> logger, IServiceProvider serviceProvider, ICorrelationIdProvider correlationIdProvider)
Parameters
Fields
AuditSerializer
Declaration
protected IAuditSerializer AuditSerializer
Field Value
Options
Declaration
protected AbpAuditingOptions Options
Field Value
ServiceProvider
Declaration
protected IServiceProvider ServiceProvider
Field Value
Properties
AuditingStore
Declaration
protected IAuditingStore AuditingStore { get; }
Property Value
Clock
Declaration
protected IClock Clock { get; }
Property Value
CorrelationIdProvider
Declaration
protected ICorrelationIdProvider CorrelationIdProvider { get; }
Property Value
CurrentClient
Declaration
protected ICurrentClient CurrentClient { get; }
Property Value
CurrentTenant
Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
CurrentUser
Declaration
protected ICurrentUser CurrentUser { get; }
Property Value
Logger
Declaration
protected ILogger<AuditingHelper> Logger { get; }
Property Value
Methods
CreateArgumentsDictionary(MethodInfo, object?[])
Declaration
protected virtual Dictionary<string, object?> CreateArgumentsDictionary(MethodInfo method, object?[] arguments)
Parameters
Returns
CreateAuditLogAction(AuditLogInfo, Type?, MethodInfo, IDictionary<string, object?>)
Declaration
public virtual AuditLogActionInfo CreateAuditLogAction(AuditLogInfo auditLog, Type? type, MethodInfo method, IDictionary<string, object?> arguments)
Parameters
Returns
CreateAuditLogAction(AuditLogInfo, Type?, MethodInfo, object?[])
Declaration
public virtual AuditLogActionInfo CreateAuditLogAction(AuditLogInfo auditLog, Type? type, MethodInfo method, object?[] arguments)
Parameters
Returns
CreateAuditLogInfo()
Declaration
public virtual AuditLogInfo CreateAuditLogInfo()
Returns
ExecutePreContributors(AuditLogInfo)
Declaration
protected virtual void ExecutePreContributors(AuditLogInfo auditLogInfo)
Parameters
IsEntityHistoryEnabled(Type, bool)
Declaration
public virtual bool IsEntityHistoryEnabled(Type entityType, bool defaultValue = false)
Parameters
Type |
Name |
Description |
Type |
entityType |
|
bool |
defaultValue |
|
Returns
SerializeConvertArguments(IDictionary<string, object?>)
Declaration
protected virtual string SerializeConvertArguments(IDictionary<string, object?> arguments)
Parameters
Returns
ShouldSaveAudit(MethodInfo?, bool, bool)
Declaration
public virtual bool ShouldSaveAudit(MethodInfo? methodInfo, bool defaultValue = false, bool ignoreIntegrationServiceAttribute = false)
Parameters
Type |
Name |
Description |
MethodInfo |
methodInfo |
|
bool |
defaultValue |
|
bool |
ignoreIntegrationServiceAttribute |
|
Returns
Implements
Extension Methods