Show / Hide Table of Contents

Class CurrentTenant

Inheritance
System.Object
CurrentTenant
Implements
ICurrentTenant
ITransientDependency
Namespace: Volo.Abp.MultiTenancy
Assembly: Volo.Abp.MultiTenancy.dll
Syntax
public class CurrentTenant : object, ICurrentTenant, ITransientDependency

Constructors

CurrentTenant(ICurrentTenantAccessor)

Declaration
public CurrentTenant(ICurrentTenantAccessor currentTenantAccessor)
Parameters
Type Name Description
ICurrentTenantAccessor currentTenantAccessor

Properties

Id

Declaration
public virtual Guid? Id { get; }
Property Value
Type Description
System.Nullable<Guid>

IsAvailable

Declaration
public virtual bool IsAvailable { get; }
Property Value
Type Description
System.Boolean

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Methods

Change(Nullable<Guid>, String)

Declaration
public IDisposable Change(Guid? id, string name = null)
Parameters
Type Name Description
System.Nullable<Guid> id
System.String name
Returns
Type Description
IDisposable

Implements

ICurrentTenant
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft