1 override of LocalPort
Microsoft.AspNetCore.Http (1)
Internal\DefaultConnectionInfo.cs (1)
74public override int LocalPort
8 writes to LocalPort
HttpAbstractions.SampleApp (1)
Program.cs (1)
36connection.LocalPort = 443;
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (5)
HealthCheckMiddlewareTests.cs (5)
713context.Connection.LocalPort = context.Request.Host.Port.Value; 751context.Connection.LocalPort = context.Request.Host.Port.Value; 789context.Connection.LocalPort = context.Request.Host.Port.Value; 825context.Connection.LocalPort = context.Request.Host.Port.Value; 869context.Connection.LocalPort = context.Request.Host.Port.Value;
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
778context.Connection.LocalPort = 4563;
Microsoft.AspNetCore.Rewrite.Tests (1)
PatternSegments\LocalPortSegmentTests.cs (1)
17context.HttpContext.Connection.LocalPort = 800;
14 references to LocalPort
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
32await context.Response.WriteAsync("LocalPort: " + context.Connection.LocalPort + Environment.NewLine);
AzureAppServicesSample (1)
Startup.cs (1)
43await context.Response.WriteAsync("LocalPort: " + context.Connection.LocalPort + Environment.NewLine);
Certificate.Optional.Sample (1)
Startup.cs (1)
25new HostString(Program.HostWithCert, context.HttpContext.Connection.LocalPort),
DefaultBuilder.SampleApp (1)
Startup.cs (1)
33await context.Response.WriteAsync("LocalPort: " + context.Connection.LocalPort + "\r\n");
IISSample (1)
Startup.cs (1)
57await context.Response.WriteAsync("LocalPort: " + context.Connection.LocalPort + Environment.NewLine);
Interop.FunctionalTests (1)
Http3\Http3RequestTests.cs (1)
1817localPort = context.Connection.LocalPort;
Kestrel.SampleApp (1)
Startup.cs (1)
56+ $"Sock: {connectionFeature.LocalIpAddress?.ToString()}:{connectionFeature.LocalPort}"
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Builder\HealthCheckApplicationBuilderExtensions.cs (1)
215(port == null || c.Connection.LocalPort == port) &&
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
827Assert.Equal(4563, connectionHttpContext.Connection.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);
NativeIISSample (1)
Startup.cs (1)
51await context.Response.WriteAsync("LocalPort: " + context.Connection.LocalPort + Environment.NewLine);
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (1)
1097LocalPort = connection.LocalPort
SystemdTestApp (1)
Startup.cs (1)
30+ $"Sock: {connectionFeature.LocalIpAddress?.ToString()}:{connectionFeature.LocalPort}");