1 write to UserIdentifier
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\aspnetcore\src\SignalR\common\testassets\Tests.Utils\HubConnectionContextUtils.cs (1)
27UserIdentifier = userIdentifier,
9 references to UserIdentifier
Microsoft.AspNetCore.SignalR.Core (5)
DefaultHubLifetimeManager.cs (2)
288return SendToAllConnections(methodName, args, (connection, state) => string.Equals(connection.UserIdentifier, (string)state!, StringComparison.Ordinal), userId, cancellationToken); 330return SendToAllConnections(methodName, args, (connection, state) => ((IReadOnlyList<string>)state!).Contains(connection.UserIdentifier), userIds, cancellationToken);
HubConnectionHandler.cs (2)
194if (!string.Equals(newUserId, connection.UserIdentifier, StringComparison.Ordinal)) 196var previousUserId = connection.UserIdentifier;
Internal\DefaultHubCallerContext.cs (1)
27public override string? UserIdentifier => _connection.UserIdentifier;
Microsoft.AspNetCore.SignalR.StackExchangeRedis (4)
RedisHubLifetimeManager.cs (4)
104if (!string.IsNullOrEmpty(connection.UserIdentifier)) 106userTask = SubscribeToUser(connection, connection.UserIdentifier); 144if (!string.IsNullOrEmpty(connection.UserIdentifier)) 146tasks.Add(RemoveUserAsync(connection, connection.UserIdentifier));