Esempio n. 1
0
        public override async Task <IAsset <string> > Process(BuildContext context, IAsset <string> asset)
        {
            var content = await asset.Load();

            var processed = $"{Path.GetFileNameWithoutExtension(content)}!!";

            return(context.Asset(asset.Identifier, asset.Configuration, processed));
        }
Esempio n. 2
0
        public override Task <IEnumerable <IAsset> > Import(BuildContext context, AssetSource source)
        {
            var asset = context.Asset(source.Path, source.Configuration, source.Path);

            return(Task.FromResult(Enumerable.Repeat((IAsset)asset, 1)));
        }