1 override of Connection
Microsoft.AspNetCore.Http (1)
159 references to Connection
AzureAppServicesHostingStartupSample (5)
AzureAppServicesSample (5)
Certificate.Optional.Sample (1)
DefaultBuilder.SampleApp (5)
Http3SampleApp (1)
HttpOverridesSample (2)
IISSample (5)
InMemory.FunctionalTests (28)
InProcessWebSite (9)
Interop.FunctionalTests (14)
Kestrel.SampleApp (2)
Microsoft.AspNetCore.Authentication.Certificate (1)
Microsoft.AspNetCore.Authentication.Test (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (5)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Microsoft.AspNetCore.Http.Connections.Tests (5)
Microsoft.AspNetCore.Http.Tests (2)
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.HttpOverrides (1)
Microsoft.AspNetCore.HttpOverrides.Tests (37)
ForwardedHeadersMiddlewareTest.cs (26)
43Assert.Equal("11.111.111.11", context.Connection.RemoteIpAddress.ToString());
44Assert.Equal(9090, context.Connection.RemotePort);
77c.Connection.RemoteIpAddress = IPAddress.Parse("10.0.0.1");
78c.Connection.RemotePort = 99;
81Assert.Equal(expectedIp, context.Connection.RemoteIpAddress.ToString());
82Assert.Equal(expectedPort, context.Connection.RemotePort);
135c.Connection.RemoteIpAddress = IPAddress.Parse("10.0.0.1");
136c.Connection.RemotePort = 99;
139Assert.Equal(expectedIp, context.Connection.RemoteIpAddress.ToString());
140Assert.Equal(expectedPort, context.Connection.RemotePort);
173c.Connection.RemoteIpAddress = IPAddress.Parse(originalIp);
174c.Connection.RemotePort = 99;
179Assert.Equal("10.0.0.1", context.Connection.RemoteIpAddress.ToString());
180Assert.Equal(1234, context.Connection.RemotePort);
187Assert.Equal(originalIp, context.Connection.RemoteIpAddress.ToString());
188Assert.Equal(99, context.Connection.RemotePort);
246c.Connection.RemoteIpAddress = IPAddress.Parse("10.0.0.1");
247c.Connection.RemotePort = 99;
250Assert.Equal(expectedIp, context.Connection.RemoteIpAddress.ToString());
251Assert.Equal(expectedPort, context.Connection.RemotePort);
280Assert.Null(context.Connection.RemoteIpAddress);
879c.Connection.RemoteIpAddress = IPAddress.Parse(remoteIp);
924Assert.Equal("11.111.111.11", context.Connection.RemoteIpAddress.ToString());
959Assert.Null(context.Connection.RemoteIpAddress);
992Assert.Equal("11.111.111.11", context.Connection.RemoteIpAddress.ToString());
1045Assert.Equal(expectedRemoteIp, context.Connection.RemoteIpAddress.ToString());
Microsoft.AspNetCore.Rewrite (6)
Microsoft.AspNetCore.Rewrite.Tests (9)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.AspNetCore.TestHost.Tests (1)
NativeIISSample (5)
Sockets.FunctionalTests (3)
SystemdTestApp (1)