コード例 #1
0
        public async Task <IEnumerable <Developer> > SearchAsync(string request, Paging paging, CVKind cvKind)
        {
            var elasticDevelopers = elastic.SearchItemsDeveloper(request, paging, cvKind);
            var developerEntities = GetEntityDevelopers(elasticDevelopers);

            var e1 = developerEntities.GetEnumerator();
            var e2 = elasticDevelopers.GetEnumerator();

            List <Developer> ret = new List <Developer>();

            while (e1.MoveNext() && e2.MoveNext())
            {
                ret.Add(await GetMergeDeveloperAsync(e1.Current, e2.Current));
            }
            return(ret);
        }