Class PrincipalTenantAccessor
Represent a tenant accessor that uses the current principal (user) to get the tenant id.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: IRM.IdentityModel
Assembly: IRM.dll
Syntax
public class PrincipalTenantAccessor : ITenantAccessor
Constructors
PrincipalTenantAccessor()
Creates a new instance of PrincipalTenantAccessor.
Declaration
public PrincipalTenantAccessor()
Remarks
Uses the CurrentClaimsPrincipalAccessor to access the current principal (user).
PrincipalTenantAccessor(ICurrentPrincipalAccessor)
Creates a new instance of PrincipalTenantAccessor.
Declaration
public PrincipalTenantAccessor(ICurrentPrincipalAccessor principalAccessor)
Parameters
ICurrentPrincipalAccessor
principalAccessor
The accessor used to get the current principal (user). |
Methods
GetTenantId()
Gets the tenant id.
Declaration
public Guid GetTenantId()
Returns
System.Guid
The unique identifier of the tenant. |