Ejemplo n.º 1
0
        public override ProfileInfoCollection GetAllProfiles(ProfileAuthenticationOption authenticationOption,
                                                             int pageIndex,
                                                             int pageSize,
                                                             out int totalRecords)
        {
            var profiles = new ProfileInfoCollection();

            totalRecords = 0;
            if (!authenticationOption.Equals(ProfileAuthenticationOption.Anonymous))
            {
                var uc = UserRepository.GetAllUsers(pageIndex, pageSize, out totalRecords);
                foreach (var user in uc)
                {
                    var username = GetUsername(user);
                    profiles.Add(new ProfileInfo(username,
                                                 user.Properties.IsAnonymous,
                                                 user.Properties.LastActivityDate,
                                                 user.Properties.LastUpdatedDate,
                                                 0));
                }
                totalRecords = profiles.Count;
            }
            return(profiles);
        }
Ejemplo n.º 2
0
		public override ProfileInfoCollection GetAllProfiles(ProfileAuthenticationOption authenticationOption,
		                                                     int pageIndex,
		                                                     int pageSize,
		                                                     out int totalRecords) {
			var profiles = new ProfileInfoCollection();
			totalRecords = 0;
			if(!authenticationOption.Equals(ProfileAuthenticationOption.Anonymous)) {
				var uc = UserRepository.GetAllUsers(pageIndex, pageSize, out totalRecords);
				foreach(var user in uc) {
					var username = GetUsername(user);
					profiles.Add(new ProfileInfo(username,
					                             user.Properties.IsAnonymous,
					                             user.Properties.LastActivityDate,
					                             user.Properties.LastUpdatedDate,
					                             0));
				}
				totalRecords = profiles.Count;
			}
			return profiles;
		}