You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
644 B

namespace Identity.Api.Clean.Shared.Consts;
public static class OrganizationUnitConsts
{
/// <summary>
/// Maximum length of the DisplayName property.
/// </summary>
public static int MaxDisplayNameLength { get; set; } = 128;
/// <summary>
/// Maximum depth of an OU hierarchy.
/// </summary>
public const int MaxDepth = 16;
/// <summary>
/// Length of a code unit between dots.
/// </summary>
public const int CodeUnitLength = 5;
/// <summary>
/// Maximum length of the Code property.
/// </summary>
public const int MaxCodeLength = MaxDepth * (CodeUnitLength + 1) - 1;
}