mirror of https://github.com/abpframework/abp.git
4 changed files with 90 additions and 0 deletions
@ -0,0 +1,35 @@ |
|||||
|
using System; |
||||
|
using Volo.Abp.ObjectExtending.Modularity; |
||||
|
|
||||
|
namespace Volo.Abp.ObjectExtending |
||||
|
{ |
||||
|
public class AuditLoggingModuleExtensionConfiguration : ModuleExtensionConfiguration |
||||
|
{ |
||||
|
public AuditLoggingModuleExtensionConfiguration ConfigureAuditLog( |
||||
|
Action<EntityExtensionConfiguration> configureAction) |
||||
|
{ |
||||
|
return this.ConfigureEntity( |
||||
|
AuditLoggingModuleExtensionConsts.EntityNames.AuditLog, |
||||
|
configureAction |
||||
|
); |
||||
|
} |
||||
|
|
||||
|
public AuditLoggingModuleExtensionConfiguration ConfigureAuditLogAction( |
||||
|
Action<EntityExtensionConfiguration> configureAction) |
||||
|
{ |
||||
|
return this.ConfigureEntity( |
||||
|
AuditLoggingModuleExtensionConsts.EntityNames.AuditLogAction, |
||||
|
configureAction |
||||
|
); |
||||
|
} |
||||
|
|
||||
|
public AuditLoggingModuleExtensionConfiguration ConfigureEntityChange( |
||||
|
Action<EntityExtensionConfiguration> configureAction) |
||||
|
{ |
||||
|
return this.ConfigureEntity( |
||||
|
AuditLoggingModuleExtensionConsts.EntityNames.EntityChange, |
||||
|
configureAction |
||||
|
); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,18 @@ |
|||||
|
using System; |
||||
|
using Volo.Abp.ObjectExtending.Modularity; |
||||
|
|
||||
|
namespace Volo.Abp.ObjectExtending |
||||
|
{ |
||||
|
public static class AuditLoggingModuleExtensionConfigurationDictionaryExtensions |
||||
|
{ |
||||
|
public static ModuleExtensionConfigurationDictionary ConfigureAuditLogging( |
||||
|
this ModuleExtensionConfigurationDictionary modules, |
||||
|
Action<AuditLoggingModuleExtensionConfiguration> configureAction) |
||||
|
{ |
||||
|
return modules.ConfigureModule( |
||||
|
AuditLoggingModuleExtensionConsts.ModuleName, |
||||
|
configureAction |
||||
|
); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,16 @@ |
|||||
|
namespace Volo.Abp.ObjectExtending |
||||
|
{ |
||||
|
public static class AuditLoggingModuleExtensionConsts |
||||
|
{ |
||||
|
public const string ModuleName = "AuditLogging"; |
||||
|
|
||||
|
public static class EntityNames |
||||
|
{ |
||||
|
public const string AuditLog = "AuditLog"; |
||||
|
|
||||
|
public const string AuditLogAction = "AuditLogAction"; |
||||
|
|
||||
|
public const string EntityChange = "EntityChange"; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue