public List <string> PartlyNormalizeDomainAndExtractFullyNormalizedParts(string url, out Uri partlyNormalizedDomain) { partlyNormalizedDomain = UrlFixer.Repair(url); if (string.IsNullOrEmpty(url) || partlyNormalizedDomain == null) { return(default);
public DomainName Get(Uri url, bool isResolver = false, bool repairUrl = false) { if ((!isResolver || !repairUrl) && UrlFixer.IsValidUrl(url.ToString())) { return(GetDomainName(url.ToString(), isResolver)); } throw new InvalidUrlException("This url is invalid"); }
public DomainName Get(string url, bool isResolver = false, bool repairUrl = false) { return(GetDomainName((isResolver || repairUrl) ? UrlFixer.Repair(url).ToString() : url, isResolver)); }