using System.Collections.Generic; namespace xIdentityModels.Configurations { /// /// the Policies for User /// public class XIdentityPolicyUser { /// /// determines Allowed characters which can used in UserName /// /// public string AllowedUserNameCharacters { get; set; } /// /// determines the Email Address of each User must be Unique or not /// /// public bool RequireUniqueEmail { get; set; } /// /// minimum length of User Name /// /// public byte MinLength { get; set; } /// /// maximum length of user name /// /// public byte MaxLength { get; set; } /// /// Minimum Age for Registration /// /// public int MinAgeForRegistration { get; set; } /// /// Maximum age for Registration /// /// public int MaxAgeForRegistration { get; set; } /// /// a collection of invalid usernames /// /// public ICollection InvalidUserNames { get; set; } = new HashSet (); } }