5 implementations of ConnectionId
Microsoft.AspNetCore.Http (1)
Features\HttpConnectionFeature.cs (1)
14public string ConnectionId { get; set; } = default!;
Microsoft.AspNetCore.Owin (1)
OwinFeatureCollection.cs (1)
223string IHttpConnectionFeature.ConnectionId
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
308string IHttpConnectionFeature.ConnectionId
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.IHttpConnectionFeature.cs (1)
68string IHttpConnectionFeature.ConnectionId
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
180string IHttpConnectionFeature.ConnectionId
4 writes to ConnectionId
Microsoft.AspNetCore.Http (1)
Internal\DefaultConnectionInfo.cs (1)
53set { HttpConnectionFeature.ConnectionId = value; }
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
78(feature, value) => feature.ConnectionId = Convert.ToString(value, CultureInfo.InvariantCulture)) },
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
RequestTests.cs (2)
109connectionInfo.ConnectionId = "CustomId"; 172connectionInfo.ConnectionId = null;
17 references to ConnectionId
IIS.Tests (1)
ConnectionIdFeatureTests.cs (1)
23connectionId = connectionIdFeature.ConnectionId;
InMemory.FunctionalTests (4)
EventSourceTests.cs (2)
43connectionId = context.Features.Get<IHttpConnectionFeature>().ConnectionId; 151connectionId = context.Features.Get<IHttpConnectionFeature>().ConnectionId;
KestrelMetricsTests.cs (2)
686connectionId = context.Features.Get<IHttpConnectionFeature>().ConnectionId; 854connectionId = context.Features.Get<IHttpConnectionFeature>().ConnectionId;
Microsoft.AspNetCore.Http (1)
Internal\DefaultConnectionInfo.cs (1)
52get { return HttpConnectionFeature.ConnectionId; }
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
738connectionFeature.ConnectionId = existingConnectionFeature.ConnectionId;
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
77{ OwinConstants.CommonKeys.ConnectionId, new FeatureMap<IHttpConnectionFeature>(feature => feature.ConnectionId,
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
RequestTests.cs (3)
47Assert.NotNull(connectionInfo.ConnectionId); 110Assert.Equal("CustomId", connectionInfo.ConnectionId); 173Assert.Null(connectionInfo.ConnectionId);
Microsoft.AspNetCore.Server.IIS (6)
Core\IISHttpContext.cs (4)
744Log.ApplicationError(_logger, ((IHttpConnectionFeature)this).ConnectionId, ((IHttpRequestIdentifierFeature)this).TraceIdentifier, ex); 752Log.ConnectionBadRequest(_logger, ((IHttpConnectionFeature)this).ConnectionId, ex); 782Log.ApplicationError(_logger, ((IHttpConnectionFeature)this).ConnectionId, ((IHttpRequestIdentifierFeature)this).TraceIdentifier, ex); 787Log.RequestAborted(_logger, ((IHttpConnectionFeature)this).ConnectionId, ((IHttpRequestIdentifierFeature)this).TraceIdentifier);
Core\IISHttpContext.IO.cs (2)
248Log.ConnectionDisconnect(_logger, ((IHttpConnectionFeature)this).ConnectionId); 283Log.ApplicationError(_logger, ((IHttpConnectionFeature)this).ConnectionId, TraceIdentifier!, ex); // TODO: Can TraceIdentifier be null?