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