示例#1
0
        private IEnumerable <AssetFile> writeTextualAsset(AssetPath asset)
        {
            var source   = _cache.SourceFor(asset);
            var contents = source.GetContent(_contentPipeline);

            _writer.Write(source.Files.First().MimeType, contents);

            return(source.Files);
        }
        private IEnumerable <AssetFile> writeTextualAsset(AssetPath asset, Action <IEnumerable <AssetFile> > writeHeaders)
        {
            var source = _cache.SourceFor(asset);

            if (source.Files.Any())
            {
                writeHeaders(source.Files);

                var contents = source.GetContent(_contentPipeline);
                _writer.Write(source.Files.First().MimeType, contents);
            }


            return(source.Files);
        }