public BundleTagHelper(IHostingEnvironment hostingEnvironment, IMemoryCache cache, HtmlEncoder htmlEncoder, IUrlHelperFactory urlHelperFactory, BundleOptions options = null, IBundleProvider bundleProvider = null)
 {
     _bundleProvider     = bundleProvider ?? new BundleProvider();
     _options            = options ?? new BundleOptions(hostingEnvironment);
     _hostingEnvironment = hostingEnvironment ?? throw new ArgumentNullException(nameof(hostingEnvironment));
     _cache            = cache ?? throw new ArgumentNullException(nameof(cache));
     _htmlEncoder      = htmlEncoder ?? throw new ArgumentNullException(nameof(htmlEncoder));
     _urlHelperFactory = urlHelperFactory ?? throw new ArgumentNullException(nameof(urlHelperFactory));
 }