1 override of RemotePort
Microsoft.AspNetCore.Http (1)
Internal\DefaultConnectionInfo.cs (1)
62public override int RemotePort
1 write to RemotePort
Microsoft.AspNetCore.HttpOverrides (1)
ForwardedHeadersMiddleware.cs (1)
324connection.RemotePort = currentValues.RemoteIpAndPort.Port;
8 references to RemotePort
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Internal\JsonTranscodingServerCallContext.cs (3)
88return $"ipv4:{connection.RemoteIpAddress}:{connection.RemotePort}"; 90return $"ipv6:[{connection.RemoteIpAddress}]:{connection.RemotePort}"; 93return $"unknown:{connection.RemoteIpAddress}:{connection.RemotePort}";
Microsoft.AspNetCore.Http.Abstractions (2)
ConnectionInfo.cs (2)
65var remoteEndpoint = RemoteIpAddress == null ? "(null)" : new IPEndPoint(RemoteIpAddress, RemotePort).ToString(); 82public int RemotePort => _info.RemotePort;
Microsoft.AspNetCore.HttpOverrides (2)
ForwardedHeadersMiddleware.cs (2)
212RemoteIpAndPort = connection.RemoteIpAddress != null ? new IPEndPoint(connection.RemoteIpAddress, connection.RemotePort) : null, 310requestHeaders[_options.OriginalForHeaderName] = new IPEndPoint(connection.RemoteIpAddress, connection.RemotePort).ToString();
Microsoft.AspNetCore.Rewrite (1)
PatternSegments\RemotePortSegment.cs (1)
12return context.HttpContext.Connection.RemotePort.ToString(CultureInfo.InvariantCulture);