1 override of Connection
Microsoft.AspNetCore.Http (1)
DefaultHttpContext.cs (1)
148public override ConnectionInfo Connection => _connection ?? (_connection = new DefaultConnectionInfo(Features));
14 references to Connection
Microsoft.AspNetCore.Authentication.Certificate (1)
CertificateAuthenticationHandler.cs (1)
61var clientCertificate = await Context.Connection.GetClientCertificateAsync();
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Builder\HealthCheckApplicationBuilderExtensions.cs (1)
215(port == null || c.Connection.LocalPort == port) &&
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Internal\JsonTranscodingServerCallContext.cs (2)
82var connection = HttpContext.Connection; 188var clientCertificate = HttpContext.Connection.ClientCertificate;
Microsoft.AspNetCore.Http.Abstractions (1)
HttpContext.cs (1)
94public ConnectionInfo Connection => _context.Connection;
Microsoft.AspNetCore.HttpLogging (1)
W3CLoggingMiddleware.cs (1)
100var connectionInfo = context.Connection;
Microsoft.AspNetCore.HttpOverrides (1)
ForwardedHeadersMiddleware.cs (1)
209var connection = context.Connection;
Microsoft.AspNetCore.Rewrite (6)
PatternSegments\IsIPV6Segment.cs (2)
12if (context.HttpContext.Connection.RemoteIpAddress == null) 16return context.HttpContext.Connection.RemoteIpAddress.AddressFamily == AddressFamily.InterNetworkV6 ? "on" : "off";
PatternSegments\LocalAddressSegment.cs (1)
10return context.HttpContext.Connection.LocalIpAddress?.ToString();
PatternSegments\LocalPortSegment.cs (1)
12return context.HttpContext.Connection.LocalPort.ToString(CultureInfo.InvariantCulture);
PatternSegments\RemoteAddressSegment.cs (1)
10return context.HttpContext.Connection.RemoteIpAddress?.ToString();
PatternSegments\RemotePortSegment.cs (1)
12return context.HttpContext.Connection.RemotePort.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"/>).