internal static string NormalizeUrl(string url) { if (AbfsUri.IsType(url)) { return(AbfsUri.Parse(url).GetUri().AbsoluteUri); } return(url); }
internal static string NormalizeUrl(string url, bool shouldReportError = false) { if (AbfsUri.IsType(url)) { return(AbfsUri.Parse(url).GetUri().AbsoluteUri); } if (shouldReportError) { throw new SynapseException(string.Format(Resources.InvalidStorageUri, url)); } else { return(url); } }