Class UserServiceBase
public abstract class UserServiceBase : IUserService
- Inheritance
-
UserServiceBase
- Implements
- Derived
- Inherited Members
Constructors
UserServiceBase(AuthenticationStateProvider)
protected UserServiceBase(AuthenticationStateProvider authenticationStateProvider)
Parameters
authenticationStateProviderAuthenticationStateProvider
Fields
_authenticationStateProvider
protected readonly AuthenticationStateProvider _authenticationStateProvider
Field Value
Methods
GetAllAsync()
protected abstract IAsyncEnumerable<IUser> GetAllAsync()
Returns
GetAsync()
public virtual IAsyncEnumerable<IUser> GetAsync()
Returns
GetClaims(ClaimsPrincipal)
protected virtual Task<ClaimsPrincipal> GetClaims(ClaimsPrincipal claimsPrincipal)
Parameters
claimsPrincipalClaimsPrincipal
Returns
GetCurrentUserAsync(ClaimsPrincipal)
public Task<IUser> GetCurrentUserAsync(ClaimsPrincipal claimsPrincipal)
Parameters
claimsPrincipalClaimsPrincipal
Returns
GetUserAsync(ClaimsPrincipal)
protected abstract Task<IUser> GetUserAsync(ClaimsPrincipal claimsPrincipal)
Parameters
claimsPrincipalClaimsPrincipal
Returns
InvalidateUserCache(string)
protected void InvalidateUserCache(string identity)
Parameters
identitystring
SeedUserNameAsync(string, string)
Sets the user's display name only if it is currently null/empty. Used by the invitation-accept flow to promote the admin-entered invitation name into the new user's identity without clobbering an IdP-provided name.
public virtual Task SeedUserNameAsync(string userKey, string name)
Parameters
Returns
SetUserNameAsync(string, string)
Always sets the user's display name. Used by the user self-edit flow where the caller has explicitly chosen a name for themselves.
public virtual Task SetUserNameAsync(string userKey, string name)