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.Connections.Abstractions (1)
DefaultConnectionContext.cs (1)
45ConnectionId = id;
24 references to ConnectionId
Microsoft.AspNetCore.Connections.Abstractions (2)
DefaultConnectionContext.cs (2)
42/// <param name="id">The <see cref="ConnectionId"/>.</param> 61/// <param name="id">The <see cref="ConnectionId"/>.</param>
Microsoft.AspNetCore.Http.Connections.Tests (1)
ServerSentEventsTests.cs (1)
51var sse = new ServerSentEventsServerTransport(connection.Application.Input, connectionId: connection.ConnectionId, LoggerFactory);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
ConnectionDispatcherTests.cs (1)
47Assert.Equal(connection.ConnectionId, pairs["ConnectionId"]);
HttpConnectionManagerTests.cs (1)
47mock.Setup(m => m.ConnectionId).Returns(connectionId);
Microsoft.AspNetCore.SignalR.Microbenchmarks (6)
BroadcastBenchmark.cs (1)
53_hubLifetimeManager.AddToGroupAsync(connection.ConnectionId, TestGroupName).GetAwaiter().GetResult();
RedisHubLifetimeManagerBenchmark.cs (5)
52await _manager2.AddToGroupAsync(client.Connection.ConnectionId, "Everyone"); 53await _manager2.AddToGroupAsync(client.Connection.ConnectionId, groupName); 70_excludedConnectionIds.Add(_clients[i].Connection.ConnectionId); 76_sendIds.Add(_clients[i].Connection.ConnectionId); 132await _manager1.SendConnectionAsync(_clients[0].Connection.ConnectionId, "Test", _args);
Microsoft.AspNetCore.SignalR.Tests (13)
HubConnectionHandlerTests.ClientResult.cs (5)
123Assert.Equal($"Connection '{client.Connection.ConnectionId}' disconnected.", ex.Message); 146var resultTask = context.Clients.Client(client.Connection.ConnectionId).InvokeAsync<int>("GetClientResult", 1, cancellationToken: default); 171var connectionId = client.Connection.ConnectionId; 363var connectionId = client.Connection.ConnectionId; 408var connectionId = client.Connection.ConnectionId;
HubConnectionHandlerTests.cs (8)
1566excludeSecondClientId.Add(secondClient.Connection.ConnectionId); 1568excludeThirdClientId.Add(thirdClient.Connection.ConnectionId); 1611var secondAndThirdClients = new HashSet<string> {secondClient.Connection.ConnectionId, 1612thirdClient.Connection.ConnectionId }; 1757var excludedConnectionIds = new List<string> { firstClient.Connection.ConnectionId }; 1950await firstClient.SendInvocationAsync("ConnectionSendMethod", secondClient.Connection.ConnectionId, "test").DefaultTimeout(); 1983await firstClient.SendInvocationAsync("DelayedSend", secondClient.Connection.ConnectionId, "test").DefaultTimeout(); 5093httpContext.Request.QueryString = new QueryString($"?client={client1.Connection.ConnectionId}");