コード例 #1
0
 public override MembershipUser GetUser(object providerUserKey, bool userIsOnline)
 {
     var user = new SecurityRepository().GetAccount((int)providerUserKey);
     if (userIsOnline)
         user.UpdateLastActivity();
     return user;
 }
コード例 #2
0
 public override MembershipUser GetUser(string username, bool userIsOnline)
 {
     var user = new SecurityRepository().GetAccount(username);
     if (userIsOnline)
         user.UpdateLastActivity();
     return user;
 }