Show / Hide Table of Contents

Class TenantAccessorDecorator

A ITenantAccessor where the tenant can be changed (temporarly or for the lifetime of the instance).

Inheritance
Object
TenantAccessorDecorator
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 TenantAccessorDecorator : ITenantAccessor

Constructors

TenantAccessorDecorator(Decorator<ITenantAccessor>)

Creates a new instance of TenantAccessorDecorator.

Declaration
public TenantAccessorDecorator(Decorator<ITenantAccessor> decorator)
Parameters
Decorator<ITenantAccessor> decorator

The ordinary ITenantAccessor.

Exceptions
System.ArgumentNullException

Methods

GetTenantId()

Gets the tenant id.

Declaration
public Guid GetTenantId()
Returns
System.Guid

The unique identifier of the tenant.

Implements
ITenantAccessor.GetTenantId()

SetCurrentTenant(Nullable<Guid>)

Sets the current tenant id to use.

Declaration
public void SetCurrentTenant(Guid? tenantId)
Parameters
System.Nullable<System.Guid> tenantId

The current tenant id to use.

Extension Methods

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