public BundleManager(int id, BundleCollection bundles, IBundlingContext bundlingContext, CancellationToken shutdownToken, IEnumerable <IBundleModelFactory> modelFactories, IBundleCache cache, IBundleVersionProvider versionProvider, IBundleUrlHelper urlHelper, ILoggerFactory loggerFactory, ISystemClock clock) { _id = id; _bundlingContext = bundlingContext; _shutdownToken = shutdownToken; _modelFactories = modelFactories; _cache = cache; _versionProvider = versionProvider; _urlHelper = urlHelper; _logger = loggerFactory.CreateLogger <BundleManager>(); _clock = clock; _bundles = bundles.ToDictionary(b => b.Path, CreateModel); }