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