예제 #1
0
 /// <summary>
 /// Initializes a new instance of the CustomPrincipal class from a user identity and an 
 /// array of role names to which the user represented by that identity belongs.
 /// </summary>
 /// <param name="identity">Identity that represents any user. </param>
 /// <param name="roles">An array of roles to which the user belongs.</param>
 internal CustomPrincipal(CustomIdentity identity, string[] roles)
     : base(identity, roles)
 {
     _roles = roles;
 }