B4BCore.BundlerForBower.BundlerForBower C# (CSharp) Method

BundlerForBower() public method

This creates the class ready for bundling
public BundlerForBower ( string jsonDataDir, string>.Func getAbsPathFromVirtualPath, string>.Func getChecksumFromRelPath ) : System
jsonDataDir string The absolute directory path to the folder that holds the BowerBundles.json and the /// optional BundlerForBower.json config file
getAbsPathFromVirtualPath string>.Func This is a function which given a path relative to the MVC project /// will return the absolute path. In MVC5 this is provided by System.Web.Hosting.HostingEnvironment.MapPath.
getChecksumFromRelPath string>.Func This is a function returns a checksum of a file referred to via an relative path /// Can be null, in which case no checksum can be used.
return System
        public BundlerForBower(string jsonDataDir, Func<string, string> getAbsPathFromVirtualPath,
            Func<string, string> getChecksumFromRelPath)
        {
            _jsonDataDir = jsonDataDir;
            _getChecksumFromRelPath = getChecksumFromRelPath ??
                (s => { throw new NotImplementedException("cachebuster parameters should not be allowed in this evironment.");});
            _searcher = new RelPathSearcher(getAbsPathFromVirtualPath);

            config = ConfigInfo.ReadConfig(Path.Combine(_jsonDataDir, B4BConfigFileName));
        }