Esempio n. 1
0
        public async Task <int> CountFilesAsync(MediaSearchQuery query)
        {
            Guard.NotNull(query, nameof(query));

            var q = _searcher.PrepareQuery(query, MediaLoadFlags.None);

            return(await q.CountAsync());
        }
Esempio n. 2
0
        public int CountFiles(MediaSearchQuery query)
        {
            Guard.NotNull(query, nameof(query));

            var q     = _searcher.PrepareQuery(query, MediaLoadFlags.None);
            var count = q.Count();

            return(count);
        }