public void WarmUpSet(string name)
        {
            var dependencies = _finder.CompileDependenciesAndOrder(new[] { name }).ToList();

            if (dependencies.Count == 0)
            {
                return;
            }
            var mimeType = MimeType.MimeTypeByFileName(dependencies[0]);

            _planCache.PlanFor(mimeType, dependencies);
        }
        public void WarmUpSet(string name)
        {
            var dependencies = _finder.CompileDependenciesAndOrder(new[] { name }).ToList();

            if (dependencies.Count == 0)
            {
                return;
            }

            var mimeTypes = dependencies.GroupBy(MimeType.MimeTypeByFileName);

            foreach (var mimeType in mimeTypes)
            {
                _planCache.PlanFor(mimeType.Key, mimeType);
            }
        }
Пример #3
0
        public IEnumerable <HtmlTag> TagsForPlan(AssetPlanKey key)
        {
            var plan = _planCache.PlanFor(key);

            return(_builder.Build(plan));
        }