public static BundleCollectionConfigurer LoadFromConfigFile(this BundleCollectionConfigurer @this, IFileInfo fileInfo,
                                                                    ConfigFilePathMapper pathMapper = null)
        {
            if (fileInfo == null)
            {
                throw new ArgumentNullException(nameof(fileInfo));
            }

            using (var stream = fileInfo.CreateReadStream())
                using (var reader = new StreamReader(stream))
                    return(@this.LoadFromConfigFile(reader, pathMapper));
        }
        public static BundleCollectionConfigurer LoadFromConfigFile(this BundleCollectionConfigurer @this, string path, IFileProvider fileProvider,
                                                                    ConfigFilePathMapper pathMapper = null)
        {
            if (path == null)
            {
                throw new ArgumentNullException(nameof(path));
            }

            if (fileProvider == null)
            {
                throw new ArgumentNullException(nameof(fileProvider));
            }

            return(@this.LoadFromConfigFile(fileProvider.GetFileInfo(path), pathMapper));
        }