Browse Source

AuditLog Module const converted to static

pull/4527/head
Ahmet Çotur 6 years ago
parent
commit
91b2f844e0
  1. 6
      modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/AuditLogActionConsts.cs
  2. 24
      modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/AuditLogConsts.cs
  3. 4
      modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/EntityChangeConsts.cs
  4. 8
      modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/EntityPropertyChangeConsts.cs

6
modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/AuditLogActionConsts.cs

@ -2,10 +2,10 @@
{
public class AuditLogActionConsts
{
public const int MaxServiceNameLength = 256;
public static int MaxServiceNameLength { get; set; } = 256;
public const int MaxMethodNameLength = 128;
public static int MaxMethodNameLength { get; set; } = 128;
public const int MaxParametersLength = 2000;
public static int MaxParametersLength { get; set; } = 2000;
}
}

24
modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/AuditLogConsts.cs

@ -2,31 +2,31 @@
{
public static class AuditLogConsts
{
public const int MaxApplicationNameLength = 96;
public static int MaxApplicationNameLength { get; set; } = 96;
public const int MaxClientIpAddressLength = 64;
public static int MaxClientIpAddressLength { get; set; } = 64;
public const int MaxClientNameLength = 128;
public static int MaxClientNameLength { get; set; } = 128;
public const int MaxClientIdLength = 64;
public static int MaxClientIdLength { get; set; } = 64;
public const int MaxCorrelationIdLength = 64;
public static int MaxCorrelationIdLength { get; set; } = 64;
public const int MaxBrowserInfoLength = 512;
public static int MaxBrowserInfoLength { get; set; } = 512;
public const int MaxExceptionsLength = 4000;
public static int MaxExceptionsLength { get; set; } = 4000;
//TODO: Replace with MaxExceptionsLength in v3.0
public static int MaxExceptionsLengthValue { get; set; } = MaxExceptionsLength;
public const int MaxCommentsLength = 256;
public static int MaxCommentsLength { get; set; } = 256;
public const int MaxUrlLength = 256;
public static int MaxUrlLength { get; set; } = 256;
public const int MaxHttpMethodLength = 16;
public static int MaxHttpMethodLength { get; set; } = 16;
public const int MaxUserNameLength = 256;
public static int MaxUserNameLength { get; set; } = 256;
public const int MaxTenantNameLength = 64;
public static int MaxTenantNameLength { get; set; } = 64;
}
}

4
modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/EntityChangeConsts.cs

@ -2,8 +2,8 @@
{
public class EntityChangeConsts
{
public const int MaxEntityTypeFullNameLength = 128;
public static int MaxEntityTypeFullNameLength { get; set; } = 128;
public const int MaxEntityIdLength = 128;
public static int MaxEntityIdLength { get; set; } = 128;
}
}

8
modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/EntityPropertyChangeConsts.cs

@ -2,12 +2,12 @@
{
public class EntityPropertyChangeConsts
{
public const int MaxNewValueLength = 512;
public static int MaxNewValueLength { get; set; } = 512;
public const int MaxOriginalValueLength = 512;
public static int MaxOriginalValueLength { get; set; } = 512;
public const int MaxPropertyNameLength = 128;
public static int MaxPropertyNameLength { get; set; } = 128;
public const int MaxPropertyTypeFullNameLength = 64;
public static int MaxPropertyTypeFullNameLength { get; set; } = 64;
}
}

Loading…
Cancel
Save