/// <summary> /// Resolves the rock URL. /// </summary> /// <param name="url">The URL.</param> /// <param name="fingerprint">if set to <c>true</c> [fingerprint].</param> /// <returns></returns> public string ResolveRockUrl(string url, bool fingerprint) { var resolvedUrl = this.ResolveRockUrl(url); if (fingerprint) { resolvedUrl = Fingerprint.Tag(resolvedUrl); } return(resolvedUrl); }
public static string FingerprintImage(this string imgPath) { if (imgPath.IsBlank() || imgPath.StartsWith("http") || imgPath.StartsWith("data:")) { return(imgPath); } imgPath = imgPath.FileNotFound(AppConfiguration.ImageNotAvailable); string staticDomain = AppConfiguration.Website_StaticDomain; if (AppConfiguration.Website_Mode_IsLocal) { staticDomain = null; } return(string.Format("{0}{1}", staticDomain, Fingerprint.Tag(imgPath))); }