Class ContextUser
Represents a user in the current context.
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
|
Edit this page
View Source
Email
Declaration
public string? Email { get; }
Property Value
|
Edit this page
View Source
Name
Declaration
public string? Name { get; }
Property Value
|
Edit this page
View Source
Roles
Declaration
public ReadOnlyCollection<string>? Roles { get; set; }
Property Value
|
Edit this page
View Source
UserId
Declaration
public string UserId { get; }
Property Value
Methods
|
Edit this page
View Source
SetClaims(IDictionary<string, string>?)
Declaration
public ContextUser SetClaims(IDictionary<string, string>? claims)
Parameters
Returns
|
Edit this page
View Source
SetEmail(string?)
Declaration
public ContextUser SetEmail(string? email)
Parameters
| Type |
Name |
Description |
| string |
email |
|
Returns
|
Edit this page
View Source
SetId(string)
Declaration
public ContextUser SetId(string userId)
Parameters
| Type |
Name |
Description |
| string |
userId |
|
Returns
|
Edit this page
View Source
SetName(string?)
Declaration
public ContextUser SetName(string? name)
Parameters
| Type |
Name |
Description |
| string |
name |
|
Returns
|
Edit this page
View Source
SetRoles(IList<string>?)
Declaration
public ContextUser SetRoles(IList<string>? roles)
Parameters
Returns
Implements
Extension Methods