Show / Hide Table of Contents

Class PrincipalTenantAccessor

Represent a tenant accessor that uses the current principal (user) to get the tenant id.

Inheritance
Object
PrincipalTenantAccessor
Inherited Members
System.Object.ToString()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
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.

Implements
ITenantAccessor.GetTenantId()

Extension Methods

ObjectExtensions.DeepClone<T>(T)
TenantAccessorDecoratorExtensions.SetCurrentEvent(ITenantAccessor, IEvent)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX