Show / Hide Table of Contents

Class RosterUserContext

Inheritance
object
RosterUserContext
Implements
IUserContext
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.GNS.Roster.Web
Assembly: Microsoft.GNS.Roster.Web.dll
Syntax
public class RosterUserContext : IUserContext

Constructors

View Source

RosterUserContext(IHttpContextAccessor, IUserAndGroupService)

Declaration
public RosterUserContext(IHttpContextAccessor httpContextAccessor, IUserAndGroupService uagService)
Parameters
Type Name Description
IHttpContextAccessor httpContextAccessor
IUserAndGroupService uagService

Methods

View Source

GetRosterUserAsync()

Gets an IRosterUser from the current ClaimsPrincipal.

Declaration
public Task<IRosterUser> GetRosterUserAsync()
Returns
Type Description
Task<IRosterUser>

See IRosterUser

View Source

GetUsernameAsync()

Gets the ClaimsPrincipal display name.

Declaration
public Task<string> GetUsernameAsync()
Returns
Type Description
Task<string>

The claim

Implements

IUserContext
  • View Source
In this article
Back to top Generated by DocFX