5 implementations of IHttpConnectionFeature
Microsoft.AspNetCore.Http (1)
Features\HttpConnectionFeature.cs (1)
11public class HttpConnectionFeature : IHttpConnectionFeature
Microsoft.AspNetCore.Owin (1)
OwinFeatureCollection.cs (1)
28IHttpConnectionFeature,
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
24IHttpConnectionFeature,
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.IHttpConnectionFeature.cs (1)
11internal partial class IISHttpContext : IHttpConnectionFeature
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.Generated.cs (1)
32IHttpConnectionFeature,
67 references to IHttpConnectionFeature
Microsoft.AspNetCore.Http (4)
Features\HttpConnectionFeature.cs (1)
9/// Default implementation for <see cref="IHttpConnectionFeature"/>.
Internal\DefaultConnectionInfo.cs (3)
14private static readonly Func<IFeatureCollection, IHttpConnectionFeature> _newHttpConnectionFeature = f => new HttpConnectionFeature(); 40private IHttpConnectionFeature HttpConnectionFeature => 98public IHttpConnectionFeature? Connection;
Microsoft.AspNetCore.Http.Connections (4)
Internal\HttpConnectionDispatcher.cs (4)
604connection.Features.Set(context.Features.Get<IHttpConnectionFeature>()); 738var existingConnectionFeature = context.Features.Get<IHttpConnectionFeature>(); 757features.Set<IHttpConnectionFeature>(connectionFeature);
Microsoft.AspNetCore.Owin (11)
OwinEnvironment.cs (5)
432{ OwinConstants.CommonKeys.ConnectionId, new FeatureMap<IHttpConnectionFeature>(feature => feature.ConnectionId, (feature, value) => feature.ConnectionId = Convert.ToString(value, CultureInfo.InvariantCulture)) }, 434{ OwinConstants.CommonKeys.LocalPort, new FeatureMap<IHttpConnectionFeature>(feature => PortToString(feature.LocalPort), (feature, value) => feature.LocalPort = Convert.ToInt32(value, CultureInfo.InvariantCulture)) }, 435{ OwinConstants.CommonKeys.RemotePort, new FeatureMap<IHttpConnectionFeature>(feature => PortToString(feature.RemotePort), (feature, value) => feature.RemotePort = Convert.ToInt32(value, CultureInfo.InvariantCulture)) }, 437{ OwinConstants.CommonKeys.LocalIpAddress, new FeatureMap<IHttpConnectionFeature>(feature => feature.LocalIpAddress.ToString(), (feature, value) => feature.LocalIpAddress = IPAddress.Parse(Convert.ToString(value, CultureInfo.InvariantCulture))) }, 438{ OwinConstants.CommonKeys.RemoteIpAddress, new FeatureMap<IHttpConnectionFeature>(feature => feature.RemoteIpAddress.ToString(), (feature, value) => feature.RemoteIpAddress = IPAddress.Parse(Convert.ToString(value, CultureInfo.InvariantCulture))) },
OwinFeatureCollection.cs (6)
199IPAddress IHttpConnectionFeature.RemoteIpAddress 205IPAddress IHttpConnectionFeature.LocalIpAddress 211int IHttpConnectionFeature.RemotePort 217int IHttpConnectionFeature.LocalPort 223string IHttpConnectionFeature.ConnectionId 403yield return new KeyValuePair<Type, object>(typeof(IHttpConnectionFeature), this);
Microsoft.AspNetCore.Server.HttpSys (14)
RequestProcessing\RequestContext.FeatureCollection.cs (13)
240IPAddress? IHttpConnectionFeature.LocalIpAddress 258IPAddress? IHttpConnectionFeature.RemoteIpAddress 276int IHttpConnectionFeature.LocalPort 294int IHttpConnectionFeature.RemotePort 312string IHttpConnectionFeature.ConnectionId 777var localIp = ((IHttpConnectionFeature)this).LocalIpAddress; 780return new IPEndPoint(localIp, ((IHttpConnectionFeature)this).LocalPort); 788((IHttpConnectionFeature)this).LocalIpAddress = localIPEndPoint.Address; 789((IHttpConnectionFeature)this).LocalPort = localIPEndPoint.Port; 798var remoteIp = ((IHttpConnectionFeature)this).RemoteIpAddress; 801return new IPEndPoint(remoteIp, ((IHttpConnectionFeature)this).RemotePort); 809((IHttpConnectionFeature)this).RemoteIpAddress = remoteIPEndPoint.Address; 810((IHttpConnectionFeature)this).RemotePort = remoteIPEndPoint.Port;
StandardFeatureCollection.cs (1)
18{ typeof(IHttpConnectionFeature), _identityFunc },
Microsoft.AspNetCore.Server.IIS (20)
Core\IISHttpContext.cs (4)
797Log.ApplicationError(_logger, ((IHttpConnectionFeature)this).ConnectionId, ((IHttpRequestIdentifierFeature)this).TraceIdentifier, ex); 805Log.ConnectionBadRequest(_logger, ((IHttpConnectionFeature)this).ConnectionId, ex); 835Log.ApplicationError(_logger, ((IHttpConnectionFeature)this).ConnectionId, ((IHttpRequestIdentifierFeature)this).TraceIdentifier, ex); 840Log.RequestAborted(_logger, ((IHttpConnectionFeature)this).ConnectionId, ((IHttpRequestIdentifierFeature)this).TraceIdentifier);
Core\IISHttpContext.FeatureCollection.cs (8)
532var localIp = ((IHttpConnectionFeature)this).LocalIpAddress; 535return new IPEndPoint(localIp, ((IHttpConnectionFeature)this).LocalPort); 543((IHttpConnectionFeature)this).LocalIpAddress = localIPEndPoint.Address; 544((IHttpConnectionFeature)this).LocalPort = localIPEndPoint.Port; 553var remoteIp = ((IHttpConnectionFeature)this).RemoteIpAddress; 556return new IPEndPoint(remoteIp, ((IHttpConnectionFeature)this).RemotePort); 564((IHttpConnectionFeature)this).RemoteIpAddress = remoteIPEndPoint.Address; 565((IHttpConnectionFeature)this).RemotePort = remoteIPEndPoint.Port;
Core\IISHttpContext.Features.cs (1)
15private static readonly Type IHttpConnectionFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature);
Core\IISHttpContext.IHttpConnectionFeature.cs (5)
13IPAddress? IHttpConnectionFeature.RemoteIpAddress 27IPAddress? IHttpConnectionFeature.LocalIpAddress 40int IHttpConnectionFeature.RemotePort 54int IHttpConnectionFeature.LocalPort 68string IHttpConnectionFeature.ConnectionId
Core\IISHttpContext.IO.cs (2)
248Log.ConnectionDisconnect(_logger, ((IHttpConnectionFeature)this).ConnectionId); 283Log.ApplicationError(_logger, ((IHttpConnectionFeature)this).ConnectionId, TraceIdentifier!, ex); // TODO: Can TraceIdentifier be null?
Microsoft.AspNetCore.Server.Kestrel.Core (14)
Internal\Http\HttpProtocol.FeatureCollection.cs (5)
156IPAddress? IHttpConnectionFeature.RemoteIpAddress 162IPAddress? IHttpConnectionFeature.LocalIpAddress 168int IHttpConnectionFeature.RemotePort 174int IHttpConnectionFeature.LocalPort 180string IHttpConnectionFeature.ConnectionId
Internal\Http\HttpProtocol.Generated.cs (9)
51internal protected IHttpConnectionFeature? _currentIHttpConnectionFeature; 248else if (key == typeof(IHttpConnectionFeature)) 400else if (key == typeof(IHttpConnectionFeature)) 402_currentIHttpConnectionFeature = (IHttpConnectionFeature?)value; 554else if (typeof(TFeature) == typeof(IHttpConnectionFeature)) 556feature = Unsafe.As<IHttpConnectionFeature?, TFeature?>(ref _currentIHttpConnectionFeature); 714else if (typeof(TFeature) == typeof(IHttpConnectionFeature)) 716_currentIHttpConnectionFeature = Unsafe.As<TFeature?, IHttpConnectionFeature?>(ref feature); 864yield return new KeyValuePair<Type, object>(typeof(IHttpConnectionFeature), _currentIHttpConnectionFeature);