Table of Contents

Interface IUserService

Namespace
Tharga.Team
Assembly
Tharga.Team.dll
public interface IUserService

Methods

GetAsync()

IAsyncEnumerable<IUser> GetAsync()

Returns

IAsyncEnumerable<IUser>

GetCurrentUserAsync(ClaimsPrincipal)

Task<IUser> GetCurrentUserAsync(ClaimsPrincipal claimsPrincipal = null)

Parameters

claimsPrincipal ClaimsPrincipal

Returns

Task<IUser>

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.

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.

Task SetUserNameAsync(string userKey, string name)

Parameters

userKey string
name string

Returns

Task