public CacheAwareBundleCollectionInitializer(IEnumerable<IConfiguration<BundleCollection>> bundleConfigurations, IBundleCollectionCache cache, ExternalBundleGenerator externalBundleGenerator, ManifestValidator manifestValidator, CassetteSettings settings) { this.bundleConfigurations = bundleConfigurations; this.cache = cache; this.externalBundleGenerator = externalBundleGenerator; this.manifestValidator = manifestValidator; this.settings = settings; }
protected IEnumerable<Bundle> CreateExternalBundlesUrlReferences(BundleCollection bundles) { var existingUrls = bundles.OfType<IExternalBundle>().Select(b => b.ExternalUrl); var generator = new ExternalBundleGenerator(existingUrls, settings); foreach (var bundle in bundles) { bundle.Accept(generator); } return generator.ExternalBundles; }
public BundleCollectionInitializer(IEnumerable<IConfiguration<BundleCollection>> bundleConfigurations, ExternalBundleGenerator externalBundleGenerator) { this.bundleConfigurations = bundleConfigurations; this.externalBundleGenerator = externalBundleGenerator; }