Esempio n. 1
0
        public IEnumerable <ContentReference> GetContentReferences(MediaType ofType)
        {
            if (ofType is null)
            {
                throw new ArgumentNullException(nameof(ofType));
            }

            foreach (var file in Decompressor.Entries(zipFile).Files())
            {
                if (ofType.GuessMatches(file.FullName))
                {
                    var cacheID = PathExt.RemoveShortExtension(file.FullName);
                    yield return(cacheID + ofType);
                }
            }
        }