Class AuditingHelper
Inheritance
System.Object
AuditingHelper
Implements
ITransientDependency
Assembly: Volo.Abp.Auditing.dll
Syntax
public class AuditingHelper : object, 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
Type |
Description |
IServiceProvider |
|
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
Type |
Description |
ICorrelationIdProvider |
|
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
Type |
Name |
Description |
MethodInfo |
method |
|
System.Object[] |
arguments |
|
Returns
Type |
Description |
Dictionary<System.String, System.Object> |
|
CreateAuditLogAction(AuditLogInfo, Type, MethodInfo, IDictionary<String, Object>)
Declaration
public virtual AuditLogActionInfo CreateAuditLogAction(AuditLogInfo auditLog, Type type, MethodInfo method, IDictionary<string, object> arguments)
Parameters
Type |
Name |
Description |
AuditLogInfo |
auditLog |
|
Type |
type |
|
MethodInfo |
method |
|
IDictionary<System.String, System.Object> |
arguments |
|
Returns
CreateAuditLogAction(AuditLogInfo, Type, MethodInfo, Object[])
Declaration
public virtual AuditLogActionInfo CreateAuditLogAction(AuditLogInfo auditLog, Type type, MethodInfo method, object[] arguments)
Parameters
Type |
Name |
Description |
AuditLogInfo |
auditLog |
|
Type |
type |
|
MethodInfo |
method |
|
System.Object[] |
arguments |
|
Returns
CreateAuditLogInfo()
Declaration
public virtual AuditLogInfo CreateAuditLogInfo()
Returns
ExecutePreContributors(AuditLogInfo)
Declaration
protected virtual void ExecutePreContributors(AuditLogInfo auditLogInfo)
Parameters
IsEntityHistoryEnabled(Type, Boolean)
Declaration
public virtual bool IsEntityHistoryEnabled(Type entityType, bool defaultValue = false)
Parameters
Type |
Name |
Description |
Type |
entityType |
|
System.Boolean |
defaultValue |
|
Returns
Type |
Description |
System.Boolean |
|
SerializeConvertArguments(IDictionary<String, Object>)
Declaration
protected virtual string SerializeConvertArguments(IDictionary<string, object> arguments)
Parameters
Type |
Name |
Description |
IDictionary<System.String, System.Object> |
arguments |
|
Returns
Type |
Description |
System.String |
|
ShouldSaveAudit(MethodInfo, Boolean)
Declaration
public virtual bool ShouldSaveAudit(MethodInfo methodInfo, bool defaultValue = false)
Parameters
Type |
Name |
Description |
MethodInfo |
methodInfo |
|
System.Boolean |
defaultValue |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
ITransientDependency
Extension Methods