Show / Hide Table of Contents

Class AuditingHelper

Inheritance
object
AuditingHelper
Implements
IAuditingHelper
ITransientDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Auditing
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
Type Name Description
IAuditSerializer auditSerializer
IOptions<AbpAuditingOptions> options
ICurrentUser currentUser
ICurrentTenant currentTenant
ICurrentClient currentClient
IClock clock
IAuditingStore auditingStore
ILogger<AuditingHelper> logger
IServiceProvider serviceProvider
ICorrelationIdProvider correlationIdProvider

Fields

AuditSerializer

Declaration
protected IAuditSerializer AuditSerializer
Field Value
Type Description
IAuditSerializer

Options

Declaration
protected AbpAuditingOptions Options
Field Value
Type Description
AbpAuditingOptions

ServiceProvider

Declaration
protected IServiceProvider ServiceProvider
Field Value
Type Description
IServiceProvider

Properties

AuditingStore

Declaration
protected IAuditingStore AuditingStore { get; }
Property Value
Type Description
IAuditingStore

Clock

Declaration
protected IClock Clock { get; }
Property Value
Type Description
IClock

CorrelationIdProvider

Declaration
protected ICorrelationIdProvider CorrelationIdProvider { get; }
Property Value
Type Description
ICorrelationIdProvider

CurrentClient

Declaration
protected ICurrentClient CurrentClient { get; }
Property Value
Type Description
ICurrentClient

CurrentTenant

Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
Type Description
ICurrentTenant

CurrentUser

Declaration
protected ICurrentUser CurrentUser { get; }
Property Value
Type Description
ICurrentUser

Logger

Declaration
protected ILogger<AuditingHelper> Logger { get; }
Property Value
Type Description
ILogger<AuditingHelper>

Methods

CreateArgumentsDictionary(MethodInfo, object?[])

Declaration
protected virtual Dictionary<string, object?> CreateArgumentsDictionary(MethodInfo method, object?[] arguments)
Parameters
Type Name Description
MethodInfo method
object[] arguments
Returns
Type Description
Dictionary<string, 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<string, object> arguments
Returns
Type Description
AuditLogActionInfo

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
object[] arguments
Returns
Type Description
AuditLogActionInfo

CreateAuditLogInfo()

Declaration
public virtual AuditLogInfo CreateAuditLogInfo()
Returns
Type Description
AuditLogInfo

ExecutePreContributors(AuditLogInfo)

Declaration
protected virtual void ExecutePreContributors(AuditLogInfo auditLogInfo)
Parameters
Type Name Description
AuditLogInfo auditLogInfo

IsEntityHistoryEnabled(Type, bool)

Declaration
public virtual bool IsEntityHistoryEnabled(Type entityType, bool defaultValue = false)
Parameters
Type Name Description
Type entityType
bool defaultValue
Returns
Type Description
bool

SerializeConvertArguments(IDictionary<string, object?>)

Declaration
protected virtual string SerializeConvertArguments(IDictionary<string, object?> arguments)
Parameters
Type Name Description
IDictionary<string, object> arguments
Returns
Type Description
string

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
Type Description
bool

Implements

IAuditingHelper
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform