9 references to Localhost
System.Net.NameResolution (9)
System\Net\Dns.cs (9)
412private const string LocalhostWithTrailingDot = Localhost + "."; 466return length > Localhost.Length && IsReservedName(hostName, Localhost); 558return GetHostEntryOrAddressesCore(Localhost, justAddresses, addressFamily); 563if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(Localhost, $"localhost IPv6 resolution failed, retrying with '{IPv6Localhost}'"); 855return await ((Task<T>)(Task)Dns.GetHostAddressesAsync(Localhost, family, cancellationToken)).ConfigureAwait(false); 859if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(Localhost, $"localhost IPv6 resolution failed, retrying with '{IPv6Localhost}'"); 868return await ((Task<T>)(Task)Dns.GetHostEntryAsync(Localhost, family, cancellationToken)).ConfigureAwait(false); 872if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(Localhost, $"localhost IPv6 resolution failed, retrying with '{IPv6Localhost}'");