public AspNetBundleContext(IBundleConfiguration bundleConfiguration, IBundleDiagnostic diagnostic, IBundleVirtualPathProvider bundleVirtualPathProvider, IBundleFileWatcher bundleFileWatcher, IBundleUrlHelper bundleUrlHelper) { if (bundleConfiguration == null) { throw new ArgumentNullException(nameof(bundleConfiguration)); } if (diagnostic == null) { throw new ArgumentNullException(nameof(diagnostic)); } if (bundleVirtualPathProvider == null) { throw new ArgumentNullException(nameof(bundleVirtualPathProvider)); } if (bundleFileWatcher == null) { throw new ArgumentNullException(nameof(bundleFileWatcher)); } if (bundleUrlHelper == null) { throw new ArgumentNullException(nameof(bundleUrlHelper)); } Configuration = bundleConfiguration; Diagnostic = diagnostic; VirtualPathProvider = bundleVirtualPathProvider; Watcher = bundleFileWatcher; UrlHelper = bundleUrlHelper; }
public AspNetBundleContext(IBundleConfiguration bundleConfiguration, IBundleDiagnostic diagnostic, IBundleVirtualPathProvider bundleVirtualPathProvider, IBundleFileWatcher bundleFileWatcher) : this(bundleConfiguration, diagnostic, bundleVirtualPathProvider, bundleFileWatcher, new AspNetBundleUrlHelper()) { }