예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OAuthPrincipal"/> class.
 /// </summary>
 /// <param name="identity">The identity.</param>
 /// <param name="roles">The roles this user belongs to.</param>
 internal OAuthPrincipal(OAuthIdentity identity, string[] roles)
 {
     this.Identity = identity;
     this.roles = roles;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OAuthPrincipal"/> class.
 /// </summary>
 /// <param name="identity">The identity.</param>
 /// <param name="roles">The roles this user belongs to.</param>
 internal OAuthPrincipal(OAuthIdentity identity, string[] roles)
 {
     this.Identity = identity;
     this.roles    = roles;
 }