/// <summary> /// Retrieves all active users from the database /// </summary> /// <returns></returns> public userSearchResultTO[] GetActiveUsers() { userSearchResultTO[] result; using (SearchClient client = new SearchClient()) { ConfigureClient(client); try { client.Open(); result = client.GetActiveUsers(); client.Close(); } catch (Exception ex) { client.Abort(); throw ex; } } return(result); }