예제 #1
0
 private IEnumerable <string> GetRolesForUserWithMembershipAttribute(string username)
 {
     using (var user = userEntryAdapter.GetUserEntryAndLoadProperties(username)) {
         return(GetRoleNamesFromUserEntry(user));
     }
 }
예제 #2
0
 public override MembershipUser GetUser(string username, bool userIsOnline)
 {
     using (var user = userEntryAdapter.GetUserEntryAndLoadProperties(username)) {
         return(membershipUserFactory.Create(user));
     }
 }