Skip to main content

IUserService

An interface in Alta.Platform, Alta.Platform.

Platform service for the signed-in Alta user: login state, the current user and lookups of other users by ID.

Properties​

MemberWhat it is
bool IsLoggedIn { get; }True while a user is signed in.
IUser LoggedInUser { get; }The signed-in user, or probably null when nobody is signed in.

Methods​

MemberWhat it is
Task<IResult<IUser>> GetUserWithId(string userId)Looks up another user by their user ID, as an async result.
Task<IResult> RefreshLoggedInUser()Fetches the signed-in user's details again, as an async result.

Used in​

Members of other types that take, return or hold a IUserService: