1 write to UserIdentifier
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\aspnetcore\src\SignalR\common\testassets\Tests.Utils\HubConnectionContextUtils.cs (1)
27UserIdentifier = userIdentifier,
11 references to UserIdentifier
Microsoft.AspNetCore.SignalR.Core (7)
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 (4)
199if (string.Equals(newUserId, connection.UserIdentifier, StringComparison.Ordinal)) 211Log.UserIdentifierChangeRejected(_logger, connection.UserIdentifier, newUserId); 336if (!string.Equals(newUserId, connection.UserIdentifier, StringComparison.Ordinal)) 338Log.UserIdentifierChangedOnRefresh(_logger, connection.UserIdentifier, newUserId);
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));