Base:
property
ConnectionId
Microsoft.AspNetCore.Connections.BaseConnectionContext.ConnectionId
Implemented interface member:
property
ConnectionId
Microsoft.AspNetCore.Connections.Features.IConnectionIdFeature.ConnectionId
1 write to ConnectionId
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionContext.cs (1)
75ConnectionId = connectionId;
46 references to ConnectionId
Microsoft.AspNetCore.Http.Connections (21)
Internal\HttpConnectionContext.cs (5)
264Log.DisposingConnection(_logger, ConnectionId); 514HttpConnectionDispatcher.Log.ConnectionAlreadyActive(dispatcherLogger, ConnectionId, HttpContext!.TraceIdentifier); 524HttpConnectionDispatcher.Log.ConnectionDisposed(dispatcherLogger, ConnectionId); 597HttpConnectionsEventSource.Log.ConnectionStart(ConnectionId); 673Log.TransportSendTimeout(_logger, _options.TransportSendTimeout, ConnectionId);
Internal\HttpConnectionDispatcher.cs (10)
76var logScope = new ConnectionLogScope(connectionContext?.ConnectionId); 154var sse = new ServerSentEventsServerTransport(connection.Application.Input, connection.ConnectionId, connection, _loggerFactory); 383logScope.ConnectionId = connection?.ConnectionId; 391WriteNegotiatePayload(writer, connection?.ConnectionId, connection?.ConnectionToken, context, options, 476Log.ConnectionDisposed(_logger, connection.ConnectionId); 495Log.ConnectionDisposedWhileWriteInProgress(_logger, connection.ConnectionId, ex); 504Log.ConnectionDisposed(_logger, connection.ConnectionId); 521Log.FailedToReadHttpRequestBody(_logger, connection.ConnectionId, ex); 587Log.ConnectionAlreadyActive(_logger, connection.ConnectionId, context.TraceIdentifier); 657logScope.ConnectionId = connection.ConnectionId;
Internal\HttpConnectionManager.cs (6)
157Log.ConnectionTimedOut(_logger, connection.ConnectionId); 158HttpConnectionsEventSource.Log.ConnectionTimedOut(connection.ConnectionId); 178Log.AuthenticationExpired(_logger, connection.ConnectionId); 211Log.ConnectionReset(_logger, connection.ConnectionId, ex); 215Log.ConnectionReset(_logger, connection.ConnectionId, ex); 219Log.FailedDispose(_logger, connection.ConnectionId, ex);
Microsoft.AspNetCore.Http.Connections.Tests (25)
HttpConnectionDispatcherTests.cs (14)
99Assert.Equal(connectionId, connectionContext.ConnectionId); 428values["id"] = connection.ConnectionId; 662values["id"] = connection.ConnectionId; 1051var exists = manager.TryGetConnection(connection.ConnectionId, out _); 1083var exists = manager.TryGetConnection(connection.ConnectionId, out _); 1119var exists = manager.TryGetConnection(connection.ConnectionId, out _); 1158var exists = manager.TryGetConnection(connection.ConnectionId, out _); 1311Assert.False(manager.TryGetConnection(connection.ConnectionId, out var _)); 1350Assert.False(manager.TryGetConnection(connection.ConnectionId, out var _)); 1394Assert.False(manager.TryGetConnection(connection.ConnectionId, out var _)); 2183deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionId}"); 2201Assert.True(manager.TryGetConnection(connection.ConnectionId, out _)); 2789deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionId}"); 2809Assert.True(manager.TryGetConnection(connection.ConnectionId, out _));
HttpConnectionManagerTests.cs (11)
50Assert.NotNull(connection.ConnectionId); 150Assert.NotNull(connection.ConnectionId); 166Assert.NotNull(connection.ConnectionId); 186Assert.NotNull(connection.ConnectionId); 208Assert.NotNull(connection.ConnectionId); 214Assert.Equal(connection.ConnectionId, connection.ConnectionToken); 229Assert.NotNull(connection.ConnectionId); 233Assert.False(connectionManager.TryGetConnection(connection.ConnectionId, out var _)); 236Assert.NotEqual(connection.ConnectionId, connection.ConnectionToken); 365Assert.NotNull(connection.ConnectionId); 381Assert.NotNull(connection.ConnectionId);