public override User GetUser(string userId) { using (var transaction = new TransactionScope(_configuration)) { var uDS = new UserDataStore(transaction); return(uDS.FindByKey(userId)); } }
public override MembershipUser GetUser(object providerUserKey, bool userIsOnline) { using (var transaction = new TransactionScope(_mConfiguration)) { var dataStore = new UserDataStore(transaction); User user = dataStore.FindByKey((string)providerUserKey); if (user == null) { return(null); } if (userIsOnline) { user.LastActivityDate = DateTime.Now; } transaction.Commit(); return(UserToMembershipUser(user)); } }