示例#1
0
        public static List <User> performeTreesSearchForPeople(string coreId, int depth,
                                                               Dictionary <string, string> criteria, ISearchSubscriber subscriber, bool checkFriends)
        {
            ISearchProfile sProfile = SearchProfileFactory.createSearchProfile(SearchType.People);

            strategy =
                SearchStrategyFactory.createTreeSearchStrategy(SearchStrategyType.BalancedTrees);

            strategy.CoreId       = coreId;
            strategy.OnFirstStep  = true;
            strategy.Depth        = depth;
            sProfile.Criteria     = criteria;
            sProfile.CheckFriends = checkFriends;
            List <IData> targets = strategy.search(sProfile, subscriber);

            return(targets.Cast <User>().ToList());
        }