Innovt Platform
Search Results for

    Show / Hide Table of Contents

    Class ContextUser

    Represents a user in the current context.

    Inheritance
    object
    ContextUser
    Implements
    IEquatable<ContextUser>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Innovt.Domain.Users
    Assembly: Innovt.Domain.dll
    Syntax
    public record ContextUser : IEquatable<ContextUser>

    Properties

    | Edit this page View Source

    Claims

    Declaration
    public ReadOnlyDictionary<string, string>? Claims { get; set; }
    Property Value
    Type Description
    ReadOnlyDictionary<string, string>
    | Edit this page View Source

    Email

    Declaration
    public string? Email { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Name

    Declaration
    public string? Name { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Roles

    Declaration
    public ReadOnlyCollection<string>? Roles { get; set; }
    Property Value
    Type Description
    ReadOnlyCollection<string>
    | Edit this page View Source

    UserId

    Declaration
    public string UserId { get; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    SetClaims(IDictionary<string, string>?)

    Declaration
    public ContextUser SetClaims(IDictionary<string, string>? claims)
    Parameters
    Type Name Description
    IDictionary<string, string> claims
    Returns
    Type Description
    ContextUser
    | Edit this page View Source

    SetEmail(string?)

    Declaration
    public ContextUser SetEmail(string? email)
    Parameters
    Type Name Description
    string email
    Returns
    Type Description
    ContextUser
    | Edit this page View Source

    SetId(string)

    Declaration
    public ContextUser SetId(string userId)
    Parameters
    Type Name Description
    string userId
    Returns
    Type Description
    ContextUser
    | Edit this page View Source

    SetName(string?)

    Declaration
    public ContextUser SetName(string? name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    ContextUser
    | Edit this page View Source

    SetRoles(IList<string>?)

    Declaration
    public ContextUser SetRoles(IList<string>? roles)
    Parameters
    Type Name Description
    IList<string> roles
    Returns
    Type Description
    ContextUser

    Implements

    IEquatable<T>

    Extension Methods

    Extensions.IsNull(object)
    Extensions.ToStringOrDefault(object)
    SimpleMapper.MapTo<T1>(object)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX