26 overrides of ConnectionId
ClientSample (1)
Tcp\TcpConnection.cs (1)
43public override string ConnectionId { get; set; } = Guid.NewGuid().ToString();
InMemory.FunctionalTests (4)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
1020public override string ConnectionId { get; set; } 1184public override string ConnectionId { get; set; }
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
241public override string ConnectionId { get; set; }
src\Servers\Kestrel\shared\TransportConnection.cs (1)
30public override string ConnectionId
Microsoft.AspNetCore.Connections.Abstractions (1)
DefaultConnectionContext.cs (1)
72public override string ConnectionId { get; set; }
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionContext.cs (1)
158public override string ConnectionId { get; set; }
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnection.cs (1)
81public override string? ConnectionId
Microsoft.AspNetCore.Server.Kestrel.Core (4)
HttpsConfigurationService.cs (1)
200public override string ConnectionId
Internal\WebTransport\WebTransportStream.cs (1)
28public override string ConnectionId { get => _streamId.ToString(NumberFormatInfo.InvariantInfo); set => throw new NotSupportedException(); }
Middleware\LoggingMultiplexedConnectionMiddleware.cs (2)
43public override string ConnectionId { get => _inner.ConnectionId; set => _inner.ConnectionId = value; } 113public override string ConnectionId { get => _inner.ConnectionId; set => _inner.ConnectionId = value; }
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
SniOptionsSelectorTests.cs (1)
940public override string ConnectionId { get; set; } = "MockConnectionId";
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
241public override string ConnectionId { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (4)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
1020public override string ConnectionId { get; set; } 1184public override string ConnectionId { get; set; }
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
241public override string ConnectionId { get; set; }
src\Servers\Kestrel\shared\TransportConnection.cs (1)
30public override string ConnectionId
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Servers\Kestrel\shared\TransportConnection.cs (1)
30public override string ConnectionId
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\Servers\Kestrel\shared\TransportConnection.cs (1)
30public override string ConnectionId
src\Servers\Kestrel\shared\TransportMultiplexedConnection.cs (1)
24public override string ConnectionId
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
src\Servers\Kestrel\shared\TransportConnection.cs (1)
30public override string ConnectionId
Microsoft.AspNetCore.SignalR.Client.Tests (2)
HubConnectionTests.Reconnect.cs (1)
1176public override string ConnectionId { get => _inner.ConnectionId; set => _inner.ConnectionId = value; }
TestConnection.cs (1)
36public override string ConnectionId { get; set; }
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Shared\TestConnectionContext.cs (1)
12public override string ConnectionId { get; set; }
Microsoft.AspNetCore.SignalR.Tests (1)
Internal\MessageBufferTests.cs (1)
500public override string ConnectionId { get; set; }
4 writes to ConnectionId
Microsoft.AspNetCore.Server.Kestrel.Core (3)
HttpsConfigurationService.cs (1)
203set => _inner.ConnectionId = value;
Middleware\LoggingMultiplexedConnectionMiddleware.cs (2)
43public override string ConnectionId { get => _inner.ConnectionId; set => _inner.ConnectionId = value; } 113public override string ConnectionId { get => _inner.ConnectionId; set => _inner.ConnectionId = value; }
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HubConnectionTests.Reconnect.cs (1)
1176public override string ConnectionId { get => _inner.ConnectionId; set => _inner.ConnectionId = value; }
71 references to ConnectionId
InMemory.FunctionalTests (3)
ConnectionMiddlewareTests.cs (1)
246connectionId = context.ConnectionId;
EventSourceTests.cs (2)
278connectionId = connectionContext.ConnectionId; 369connectionId = connectionContext.ConnectionId;
Microsoft.AspNetCore.Http.Connections (1)
HttpConnectionDispatcherOptions.cs (1)
128/// Set to allow connections to reconnect with the same <see cref="BaseConnectionContext.ConnectionId"/>.
Microsoft.AspNetCore.Http.Connections.Common (1)
NegotiationResponse.cs (1)
51/// If set, the connection should attempt to reconnect with the same <see cref="BaseConnectionContext.ConnectionId"/> if it disconnects.
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);
Microsoft.AspNetCore.Server.Kestrel.Core (22)
HttpsConfigurationService.cs (1)
202get => _inner.ConnectionId;
Internal\ConnectionDispatcher.cs (1)
64Log.ConnectionAccepted(connection.ConnectionId);
Internal\Http2\Http2FrameWriter.cs (1)
142_log.Http2FlowControlQueueMaximumTooLow(_connectionContext.ConnectionId, maxStreamsPerConnection, _maximumFlowControlQueueSize);
Internal\Http3\Http3Connection.cs (1)
662_multiplexedContext.ConnectionId,
Internal\Http3\Http3ControlStream.cs (1)
76public string TraceIdentifier => _context.StreamContext.ConnectionId;
Internal\Http3\Http3Stream.cs (1)
944return _context.StreamContext.ConnectionId;
Internal\Infrastructure\ConnectionReference.cs (1)
19ConnectionId = connection.TransportConnection.ConnectionId;
Internal\Infrastructure\KestrelConnection.cs (1)
176return Logger.BeginScope(new ConnectionLogScope(connectionContext.ConnectionId));
Internal\Infrastructure\KestrelConnectionOfT.cs (3)
61Logger.ConnectionStart(connectionContext.ConnectionId); 74Logger.LogError(0, ex, "Unhandled exception while processing {ConnectionId}.", connectionContext.ConnectionId); 88Logger.ConnectionStop(connectionContext.ConnectionId);
Internal\Infrastructure\KestrelEventSource.cs (4)
65connection.ConnectionId, 85ConnectionStop(connection.ConnectionId); 176TlsHandshakeStart(connectionContext.ConnectionId, sslOptions.EnabledSslProtocols.ToString()); 198TlsHandshakeStop(connectionContext.ConnectionId, sslProtocols, applicationProtocol, hostName);
Middleware\ConnectionLimitMiddleware.cs (2)
36KestrelEventSource.Log.ConnectionRejected(connection.ConnectionId); 37_trace.ConnectionRejected(connection.ConnectionId);
Middleware\HttpConnectionMiddleware.cs (1)
37connectionContext.ConnectionId,
Middleware\HttpMultiplexedConnectionMiddleware.cs (1)
36connectionContext.ConnectionId,
Middleware\HttpsConnectionMiddleware.cs (1)
203_logger.HttpsConnectionEstablished(context.ConnectionId, sslStream.SslProtocol);
Middleware\LoggingMultiplexedConnectionMiddleware.cs (2)
43public override string ConnectionId { get => _inner.ConnectionId; set => _inner.ConnectionId = value; } 113public override string ConnectionId { get => _inner.ConnectionId; set => _inner.ConnectionId = value; }
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Internal\NamedPipeLog.cs (2)
18AcceptedConnectionCore(logger, connection.ConnectionId); 29ConnectionErrorCore(logger, connection.ConnectionId, ex);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
Internal\QuicLog.cs (4)
20AcceptedConnectionCore(logger, connection.ConnectionId); 53ConnectionErrorCore(logger, connection.ConnectionId, ex); 64ConnectionAbortedCore(logger, connection.ConnectionId, errorCode, ex); 75ConnectionAbortCore(logger, connection.ConnectionId, errorCode, reason);
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (2)
186public string? ConnectionId => _state.CurrentConnectionStateUnsynchronized?.Connection.ConnectionId; 2153_hubConnection._logScope.ConnectionId = connection.ConnectionId;
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HubConnectionTests.Reconnect.cs (1)
1176public override string ConnectionId { get => _inner.ConnectionId; set => _inner.ConnectionId = value; }
Microsoft.AspNetCore.SignalR.Core (1)
HubConnectionContext.cs (1)
128public virtual string ConnectionId => _connectionContext.ConnectionId;
SignalRSamples (5)
ConnectionHandlers\MessagesConnectionHandler.cs (3)
21await Broadcast($"{connection.ConnectionId} connected ({transportType})"); 36text = $"{connection.ConnectionId}: {text}"; 54await Broadcast($"{connection.ConnectionId} disconnected ({transportType})");
ConnectionList.cs (2)
30_connections.TryAdd(connection.ConnectionId, connection); 35_connections.TryRemove(connection.ConnectionId, out var dummy);
SocialWeather (2)
ConnectionList.cs (2)
31_connections.TryAdd(connection.ConnectionId, connection); 36_connections.TryRemove(connection.ConnectionId, out var dummy);
Sockets.FunctionalTests (2)
src\Servers\Kestrel\test\FunctionalTests\UnixDomainSocketsTests.cs (2)
59Logger.LogDebug("Application receive loop ending for connection {connectionId}.", connection.ConnectionId); 70Logger.LogDebug("Graceful shutdown triggered for {connectionId}.", connection.ConnectionId);