Interface IUserContext
Encapsulates user context functionality.
Namespace: Microsoft.GNS.Roster.Internal
Assembly: Microsoft.GNS.Roster.Internal.dll
Syntax
public interface IUserContextMethods
View SourceGetRosterUserAsync()
Gets an IRosterUser from the current ClaimsPrincipal.
Declaration
Task<IRosterUser> GetRosterUserAsync()Returns
| Type | Description | 
|---|---|
| Task<IRosterUser> | See IRosterUser | 
GetUsernameAsync()
Gets the ClaimsPrincipal display name.
Declaration
Task<string> GetUsernameAsync()Returns
| Type | Description | 
|---|---|
| Task<string> | The claim |