From 238b3930093532c772fb92d630b1b7ba1cb4e0e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C3=87otur?= Date: Mon, 29 Jun 2020 15:07:13 +0300 Subject: [PATCH] Added summaries to audit logging consts --- .../Abp/AuditLogging/AuditLogActionConsts.cs | 9 +++++ .../Volo/Abp/AuditLogging/AuditLogConsts.cs | 36 +++++++++++++++++++ .../Abp/AuditLogging/EntityChangeConsts.cs | 6 ++++ .../EntityPropertyChangeConsts.cs | 12 +++++++ 4 files changed, 63 insertions(+) diff --git a/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/AuditLogActionConsts.cs b/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/AuditLogActionConsts.cs index d40ad03c94..5f1967804e 100644 --- a/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/AuditLogActionConsts.cs +++ b/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/AuditLogActionConsts.cs @@ -2,10 +2,19 @@ { public class AuditLogActionConsts { + /// + /// Default value: 256 + /// public static int MaxServiceNameLength { get; set; } = 256; + /// + /// Default value: 128 + /// public static int MaxMethodNameLength { get; set; } = 128; + /// + /// Default value: 2000 + /// public static int MaxParametersLength { get; set; } = 2000; } } diff --git a/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/AuditLogConsts.cs b/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/AuditLogConsts.cs index 3a5e220301..4a8c723b76 100644 --- a/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/AuditLogConsts.cs +++ b/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/AuditLogConsts.cs @@ -2,31 +2,67 @@ { public static class AuditLogConsts { + /// + /// Default value: 96 + /// public static int MaxApplicationNameLength { get; set; } = 96; + /// + /// Default value: 64 + /// public static int MaxClientIpAddressLength { get; set; } = 64; + /// + /// Default value: 128 + /// public static int MaxClientNameLength { get; set; } = 128; + /// + /// Default value: 64 + /// public static int MaxClientIdLength { get; set; } = 64; + /// + /// Default value: 64 + /// public static int MaxCorrelationIdLength { get; set; } = 64; + /// + /// Default value: 512 + /// public static int MaxBrowserInfoLength { get; set; } = 512; + /// + /// Default value: 4000 + /// public static int MaxExceptionsLength { get; set; } = 4000; //TODO: Replace with MaxExceptionsLength in v3.0 public static int MaxExceptionsLengthValue { get; set; } = MaxExceptionsLength; + /// + /// Default value: 256 + /// public static int MaxCommentsLength { get; set; } = 256; + /// + /// Default value: 256 + /// public static int MaxUrlLength { get; set; } = 256; + /// + /// Default value: 16 + /// public static int MaxHttpMethodLength { get; set; } = 16; + /// + /// Default value: 256 + /// public static int MaxUserNameLength { get; set; } = 256; + /// + /// Default value: 64 + /// public static int MaxTenantNameLength { get; set; } = 64; } } diff --git a/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/EntityChangeConsts.cs b/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/EntityChangeConsts.cs index 22236ac437..b7f88db3e2 100644 --- a/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/EntityChangeConsts.cs +++ b/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/EntityChangeConsts.cs @@ -2,8 +2,14 @@ { public class EntityChangeConsts { + /// + /// Default value: 128 + /// public static int MaxEntityTypeFullNameLength { get; set; } = 128; + /// + /// Default value: 128 + /// public static int MaxEntityIdLength { get; set; } = 128; } } diff --git a/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/EntityPropertyChangeConsts.cs b/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/EntityPropertyChangeConsts.cs index 73fce2bd1f..8d592e06aa 100644 --- a/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/EntityPropertyChangeConsts.cs +++ b/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/EntityPropertyChangeConsts.cs @@ -2,12 +2,24 @@ { public class EntityPropertyChangeConsts { + /// + /// Default value: 512 + /// public static int MaxNewValueLength { get; set; } = 512; + /// + /// Default value: 512 + /// public static int MaxOriginalValueLength { get; set; } = 512; + /// + /// Default value: 128 + /// public static int MaxPropertyNameLength { get; set; } = 128; + /// + /// Default value: 64 + /// public static int MaxPropertyTypeFullNameLength { get; set; } = 64; } }