Base:
31 references to ToString
Aspire.Dashboard (2)
Configuration\ResolvedEndpointInfo.cs (2)
34return host == "*" || host == "+" || host == IPAddress.Any.ToString() || host == IPAddress.IPv6Any.ToString();
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (1)
143activity.SetTag(SemanticConventions.AttributeNetPeerIp, ipEndPoint.Address.ToString());
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SocketConnection.cs (1)
527addressStringBuilder.Append(addresses[i].ToString());
Microsoft.AspNetCore.Http.Connections (1)
src\aspnetcore\src\Shared\ConnectionEndpointTags.cs (1)
59tags.Add("server.address", localIPEndPoint.Address.ToString());
Microsoft.AspNetCore.HttpLogging (2)
W3CLoggingMiddleware.cs (2)
104shouldLog |= AddToList(elements, _clientIpIndex, connectionInfo.RemoteIpAddress is null ? "" : connectionInfo.RemoteIpAddress.ToString()); 109shouldLog |= AddToList(elements, _serverIpIndex, connectionInfo.LocalIpAddress is null ? "" : connectionInfo.LocalIpAddress.ToString());
Microsoft.AspNetCore.Rewrite (2)
PatternSegments\LocalAddressSegment.cs (1)
10return context.HttpContext.Connection.LocalIpAddress?.ToString();
PatternSegments\RemoteAddressSegment.cs (1)
10return context.HttpContext.Connection.RemoteIpAddress?.ToString();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\ConnectionEndpointTags.cs (1)
59tags.Add("server.address", localIPEndPoint.Address.ToString());
Microsoft.AspNetCore.SignalR.Core (1)
src\aspnetcore\src\Shared\ConnectionEndpointTags.cs (1)
59tags.Add("server.address", localIPEndPoint.Address.ToString());
Microsoft.Extensions.ServiceDiscovery (1)
Http\ResolvingHttpDelegatingHandler.cs (1)
90host = ip.Address.ToString();
Microsoft.Gen.Logging.Generated.Tests (1)
LogPropertiesTests.cs (1)
131Assert.Equal(props.P6.ToString(), state!.GetValue("p.P6"));
Microsoft.NET.Sdk.Publish.Tasks (2)
MsDeploy\CommonUtility.cs (2)
1761return iPAddress.ToString(); 1766stringBuilder.Append(iPAddress.ToString());
System.DirectoryServices (2)
System\DirectoryServices\ActiveDirectory\ADAMInstance.cs (1)
656return (hostEntry.AddressList[0]).ToString();
System\DirectoryServices\ActiveDirectory\DomainController.cs (1)
725return (hostEntry.AddressList[0]).ToString();
System.Net.Http (3)
System\Net\Http\HttpTelemetry.cs (1)
100string? remoteAddress = remoteEndPoint?.Address?.ToString();
System\Net\Http\SocketsHttpHandler\ConnectionPool\ConnectionSetupDistributedTracing.cs (1)
52activity.SetTag("network.peer.address", remoteEndPoint.Address.ToString());
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (1)
79remoteEndPoint?.Address?.ToString());
System.Net.NameResolution (4)
System\Net\Dns.cs (1)
883HostName = address.ToString(),
System\Net\NameResolutionTelemetry.cs (3)
134IPAddress a => a.ToString(), 135KeyValuePair<IPAddress, AddressFamily> t => t.Key.ToString(), 236result[i] = addresses[i].ToString();
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.PingUtility.cs (1)
41string processArgs = UnixCommandLinePing.ConstructCommandLine(buffer.Length, timeout, address.ToString(), isIpv4, options?.Ttl ?? 0, fragmentOption);
System.Net.Primitives (2)
System\Net\IPAddress.cs (2)
48/// A lazily initialized cache of the result of calling <see cref="ToString"/>. 478ToString();
System.Net.Quic (1)
System\Net\Quic\QuicConnection.cs (1)
418options.ClientAuthenticationOptions.TargetHost ?? host ?? address.ToString(),
System.Net.Requests (1)
System\Net\FtpControlStream.cs (1)
837address.ToString() +
System.Net.Sockets (1)
System\Net\Sockets\SocketsTelemetry.cs (1)
113activity.SetTag("network.peer.address", ipEndPoint.Address.ToString());
System.ServiceModel.NetTcp (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
929addressStringBuilder.Append(addresses[i].ToString());