3 instantiations of UserIdentitySnapshot
Microsoft.AspNetCore.Http.Connections (3)
Internal\UserIdentitySnapshot.cs (3)
65return new UserIdentitySnapshot(preferredClaim); 87return string.IsNullOrEmpty(name) ? null : new UserIdentitySnapshot(name); 112return new UserIdentitySnapshot(parameters);
12 references to UserIdentitySnapshot
Microsoft.AspNetCore.Http.Connections (12)
Internal\HttpConnectionContext.cs (7)
59private UserIdentitySnapshot? _negotiatedUserIdentity; 97_negotiatedUserIdentity = UserIdentitySnapshot.Capture(negotiatedUser); 511return UserIdentitySnapshot.Matches(_negotiatedUserIdentity, UserIdentitySnapshot.Capture(user)); 629return UserIdentitySnapshot.Matches( 630UserIdentitySnapshot.Capture(currentUser), 631UserIdentitySnapshot.Capture(user));
Internal\HttpConnectionDispatcher.cs (2)
1159var originalIdentity = originalUser is null ? null : UserIdentitySnapshot.GetUserIdentityKey(originalUser); 1160var newIdentity = UserIdentitySnapshot.GetUserIdentityKey(newUser);
Internal\UserIdentitySnapshot.cs (3)
56public static UserIdentitySnapshot? Capture(ClaimsPrincipal? user) 145public static bool Matches(UserIdentitySnapshot? current, UserIdentitySnapshot? incoming)