5 implementations of LocalPort
Microsoft.AspNetCore.Http (1)
Features\HttpConnectionFeature.cs (1)
20public int LocalPort { get; set; }
Microsoft.AspNetCore.Owin (1)
OwinFeatureCollection.cs (1)
217int IHttpConnectionFeature.LocalPort
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
275int IHttpConnectionFeature.LocalPort
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.IHttpConnectionFeature.cs (1)
54int IHttpConnectionFeature.LocalPort
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
174int IHttpConnectionFeature.LocalPort
6 writes to LocalPort
Microsoft.AspNetCore.Http (1)
Internal\DefaultConnectionInfo.cs (1)
77set { HttpConnectionFeature.LocalPort = value; }
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
434{ OwinConstants.CommonKeys.LocalPort, new FeatureMap<IHttpConnectionFeature>(feature => PortToString(feature.LocalPort), (feature, value) => feature.LocalPort = Convert.ToInt32(value, CultureInfo.InvariantCulture)) },
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
783((IHttpConnectionFeature)this).LocalPort = localIPEndPoint.Port;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
RequestTests.cs (2)
100connectionInfo.LocalPort = 54321; 163connectionInfo.LocalPort = -1;
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
544((IHttpConnectionFeature)this).LocalPort = localIPEndPoint.Port;
9 references to LocalPort
Microsoft.AspNetCore.Http (1)
Internal\DefaultConnectionInfo.cs (1)
76get { return HttpConnectionFeature.LocalPort; }
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
745connectionFeature.LocalPort = existingConnectionFeature.LocalPort;
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
434{ OwinConstants.CommonKeys.LocalPort, new FeatureMap<IHttpConnectionFeature>(feature => PortToString(feature.LocalPort), (feature, value) => feature.LocalPort = Convert.ToInt32(value, CultureInfo.InvariantCulture)) },
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
774return new IPEndPoint(localIp, ((IHttpConnectionFeature)this).LocalPort);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
RequestTests.cs (3)
44Assert.NotEqual(0, connectionInfo.LocalPort); 101Assert.Equal(54321, connectionInfo.LocalPort); 164Assert.Equal(-1, connectionInfo.LocalPort);
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
535return new IPEndPoint(localIp, ((IHttpConnectionFeature)this).LocalPort);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Hubs.cs (1)
88feature.LocalPort,