mirror of https://github.com/abpframework/abp.git
11 changed files with 39 additions and 58 deletions
@ -1,39 +1,42 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
using Volo.Abp.Auditing; |
|||
using Volo.Abp.Data; |
|||
using Volo.Abp.Domain.Entities; |
|||
using Volo.Abp.MultiTenancy; |
|||
|
|||
namespace Volo.Abp.AuditLogging |
|||
{ |
|||
public class AuditLogAction : Entity<Guid> |
|||
public class AuditLogAction : Entity<Guid>, IHasExtraProperties |
|||
{ |
|||
public virtual string ServiceName { get; set; } |
|||
public virtual Guid AuditLogId { get; protected set; } |
|||
|
|||
public virtual string MethodName { get; set; } |
|||
public virtual string ServiceName { get; protected set; } |
|||
|
|||
public virtual string Parameters { get; set; } |
|||
public virtual string MethodName { get; protected set; } |
|||
|
|||
public virtual DateTime ExecutionTime { get; set; } |
|||
public virtual string Parameters { get; protected set; } |
|||
|
|||
public virtual int ExecutionDuration { get; set; } |
|||
public virtual DateTime ExecutionTime { get; protected set; } |
|||
|
|||
public virtual Dictionary<string, object> ExtraProperties { get; } |
|||
public virtual int ExecutionDuration { get; protected set; } |
|||
|
|||
public virtual Dictionary<string, object> ExtraProperties { get; protected set; } |
|||
|
|||
protected AuditLogAction() |
|||
{ |
|||
ExtraProperties = new Dictionary<string, object>(); |
|||
} |
|||
|
|||
public AuditLogAction(AuditLogActionInfo auditLogActionInfo) |
|||
public AuditLogAction(Guid id, Guid auditLogId, AuditLogActionInfo auditLogActionInfo) |
|||
{ |
|||
Id = id; |
|||
AuditLogId = auditLogId; |
|||
ServiceName = auditLogActionInfo.ServiceName; |
|||
MethodName = auditLogActionInfo.MethodName; |
|||
Parameters = auditLogActionInfo.Parameters; |
|||
ExecutionTime = auditLogActionInfo.ExecutionTime; |
|||
ExecutionDuration = auditLogActionInfo.ExecutionDuration; |
|||
ExtraProperties = auditLogActionInfo.ExtraProperties; |
|||
ExtraProperties = auditLogActionInfo.ExtraProperties; //TODO: Copy, instead of assign
|
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -1,16 +0,0 @@ |
|||
using System; |
|||
using Volo.Abp.DependencyInjection; |
|||
|
|||
namespace Volo.Abp.AuditLogging |
|||
{ |
|||
public class AuditingTestData : ISingletonDependency |
|||
{ |
|||
public Guid UserId { get; } = Guid.NewGuid(); |
|||
|
|||
public Guid TenantId { get; } = Guid.NewGuid(); |
|||
|
|||
public Guid ImpersonatorUserId { get; } = Guid.NewGuid(); |
|||
|
|||
public Guid ImpersonatorTenantId { get; } = Guid.NewGuid(); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue