public override MembershipUser GetUser(string username, bool userIsOnline)
 {
     using (UserServiceClient client = new UserServiceClient()) {
         var dataObject = client.UserGetByKey(username);
         client.Close();
         if (dataObject == null)
             return null;
         return ConvertToMem(dataObject);
     }
 }
 public override string GetUserNameByEmail(string email)
 {
     using (UserServiceClient client = new UserServiceClient()) {
         var dataObject = client.UserGetByKey(email);
         client.Close();
         if (dataObject == null)
             return null;
         return dataObject.Name;
     }
 }
 public override MembershipUserCollection FindUsersByName(string usernameToMatch, int pageIndex, int pageSize, out int totalRecords)
 {
     MembershipUserCollection col = new MembershipUserCollection();
     using (UserServiceClient client = new UserServiceClient()) {
         var dataObject = client.UserGetByKey(usernameToMatch);
         totalRecords = 1;
         col.Add(this.ConvertToMem(dataObject));
         client.Close();
         return col;
     }
 }