Пример #1
0
        private List <T> BatchGetLatestResourceVersions <T>(IList <long> resourceIds) where T : ResourceVersion
        {
            var resultList = new List <T>();

            for (int i = 0; i < resourceIds.Count; i += BatchSize)
            {
                var ids      = resourceIds.Skip(i).Take(BatchSize);
                var dbResult = m_resourceRepository.GetLatestResourceVersions <T>(ids);

                resultList.AddRange(dbResult);
            }

            return(resultList);
        }