public List <string> PartlyNormalizeDomainAndExtractFullyNormalizedParts(string url, out Uri partlyNormalizedDomain)
        {
            partlyNormalizedDomain = UrlFixer.Repair(url);

            if (string.IsNullOrEmpty(url) || partlyNormalizedDomain == null)
            {
                return(default);
Beispiel #2
0
 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");
 }
Beispiel #3
0
 public DomainName Get(string url, bool isResolver = false, bool repairUrl = false)
 {
     return(GetDomainName((isResolver || repairUrl) ? UrlFixer.Repair(url).ToString() : url, isResolver));
 }