Exemple #1
0
 public UrlHost(string host)
 {
     Value = host;
     if (ReferenceEquals(null, host) || host.Length <= 0)
     {
         Type = EHostType.Empty;
     }
     else
     {
         Type = EHostType.Opaque;
         if (StringCommon.Contains(host.AsSpan(), UnicodeCommon.CHAR_FULL_STOP))
         {
             Type = EHostType.Domain;
         }
     }
 }
Exemple #2
0
 public UrlHost(IPV6Address address)
 {
     Value = address;
     Type  = EHostType.IPV6Address;
 }