static string GetUrlVersion(OminifyPackage package) { var versionAlgorithmContext = new OminifyOptions.VersionAlgorithmContext { LastModifiedUtc = package.GetLastModifiedUtc(options) }; return(options.VersionAlgorithm.Invoke(versionAlgorithmContext)); }
public void AddPackage(OminifyPackage package) { packages.Add(package); }
public void AddPackage(OminifyPackage package) { packages.Add(package); }
static string GetUrl(OminifyPackage package) { var version = GetUrlVersion(package); return(string.Format("{0}?v={1}", package.PackagePath, version)); }
static string GetUrlVersion(OminifyPackage package) { var versionAlgorithmContext = new OminifyOptions.VersionAlgorithmContext { LastModifiedUtc = package.GetLastModifiedUtc(options) }; return options.VersionAlgorithm.Invoke(versionAlgorithmContext); }
static string GetUrl(OminifyPackage package) { var version = GetUrlVersion(package); return string.Format("{0}?v={1}", package.PackagePath, version); }