Class TenantAccessorDecorator
A ITenantAccessor where the tenant can be changed (temporarly or for the lifetime of the instance).
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 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
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. |