Table of Contents

Class UserServiceBase

Namespace
Tharga.Team
Assembly
Tharga.Team.dll
public abstract class UserServiceBase : IUserService
Inheritance
UserServiceBase
Implements
Derived
Inherited Members

Constructors

UserServiceBase(AuthenticationStateProvider)

protected UserServiceBase(AuthenticationStateProvider authenticationStateProvider)

Parameters

authenticationStateProvider AuthenticationStateProvider

Fields

_authenticationStateProvider

protected readonly AuthenticationStateProvider _authenticationStateProvider

Field Value

AuthenticationStateProvider

Methods

GetAllAsync()

protected abstract IAsyncEnumerable<IUser> GetAllAsync()

Returns

IAsyncEnumerable<IUser>

GetAsync()

public virtual IAsyncEnumerable<IUser> GetAsync()

Returns

IAsyncEnumerable<IUser>

GetClaims(ClaimsPrincipal)

protected virtual Task<ClaimsPrincipal> GetClaims(ClaimsPrincipal claimsPrincipal)

Parameters

claimsPrincipal ClaimsPrincipal

Returns

Task<ClaimsPrincipal>

GetCurrentUserAsync(ClaimsPrincipal)

public Task<IUser> GetCurrentUserAsync(ClaimsPrincipal claimsPrincipal)

Parameters

claimsPrincipal ClaimsPrincipal

Returns

Task<IUser>

GetUserAsync(ClaimsPrincipal)

protected abstract Task<IUser> GetUserAsync(ClaimsPrincipal claimsPrincipal)

Parameters

claimsPrincipal ClaimsPrincipal

Returns

Task<IUser>

InvalidateUserCache(string)

protected void InvalidateUserCache(string identity)

Parameters

identity string

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

userKey string
name string

Returns

Task

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)

Parameters

userKey string
name string

Returns

Task