1 override of LocalPort
Microsoft.AspNetCore.Http (1)
Internal\DefaultConnectionInfo.cs (1)
74public override int LocalPort
6 references to LocalPort
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Builder\HealthCheckApplicationBuilderExtensions.cs (1)
215(port == null || c.Connection.LocalPort == port) &&
Microsoft.AspNetCore.Http.Abstractions (2)
ConnectionInfo.cs (2)
66var localEndpoint = LocalIpAddress == null ? "(null)" : new IPEndPoint(LocalIpAddress, LocalPort).ToString(); 84public int LocalPort => _info.LocalPort;
Microsoft.AspNetCore.HttpLogging (1)
W3CLoggingMiddleware.cs (1)
114shouldLog |= AddToList(elements, _serverPortIndex, connectionInfo.LocalPort.ToString(CultureInfo.InvariantCulture));
Microsoft.AspNetCore.Rewrite (1)
PatternSegments\LocalPortSegment.cs (1)
12return context.HttpContext.Connection.LocalPort.ToString(CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Routing (1)
Builder\RoutingEndpointConventionBuilderExtensions.cs (1)
36/// Verify the local port where the connection was accepted using <see cref="HttpContext.Connection"/> (specifically <see cref="ConnectionInfo.LocalPort"/>).