Exemplo n.º 1
0
        protected virtual async Task <string> ApplyTransformsAsync(IBundleTransformContext context, IReadOnlyList <IBundleTransform> transforms)
        {
            if (transforms != null)
            {
                for (int i = 0, n = transforms.Count; i < n; i++)
                {
                    context.BuildContext.CancellationToken.ThrowIfCancellationRequested();

                    IBundleTransform transform = transforms[i];
                    await transform.TransformAsync(context);

                    transform.Transform(context);
                }
            }

            return(context.Content);
        }