Show / Hide Table of Contents

Class TenantStore

Inheritance
object
TenantStore
Implements
ITenantStore
ITransientDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.TenantManagement
Assembly: Volo.Abp.TenantManagement.Domain.dll
Syntax
public class TenantStore : ITenantStore, ITransientDependency

Constructors

TenantStore(ITenantRepository, IObjectMapper<AbpTenantManagementDomainModule>, ICurrentTenant, IDistributedCache<TenantConfigurationCacheItem>)

Declaration
public TenantStore(ITenantRepository tenantRepository, IObjectMapper<AbpTenantManagementDomainModule> objectMapper, ICurrentTenant currentTenant, IDistributedCache<TenantConfigurationCacheItem> cache)
Parameters
Type Name Description
ITenantRepository tenantRepository
IObjectMapper<AbpTenantManagementDomainModule> objectMapper
ICurrentTenant currentTenant
IDistributedCache<TenantConfigurationCacheItem> cache

Properties

Cache

Declaration
protected IDistributedCache<TenantConfigurationCacheItem> Cache { get; }
Property Value
Type Description
IDistributedCache<TenantConfigurationCacheItem>

CurrentTenant

Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
Type Description
ICurrentTenant

ObjectMapper

Declaration
protected IObjectMapper<AbpTenantManagementDomainModule> ObjectMapper { get; }
Property Value
Type Description
IObjectMapper<AbpTenantManagementDomainModule>

TenantRepository

Declaration
protected ITenantRepository TenantRepository { get; }
Property Value
Type Description
ITenantRepository

Methods

CalculateCacheKey(Guid?, string)

Declaration
protected virtual string CalculateCacheKey(Guid? id, string normalizedName)
Parameters
Type Name Description
Guid? id
string normalizedName
Returns
Type Description
string

Find(Guid)

Declaration
[Obsolete("Use FindAsync method.")]
public virtual TenantConfiguration Find(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
TenantConfiguration

Find(string)

Declaration
[Obsolete("Use FindAsync method.")]
public virtual TenantConfiguration Find(string normalizedName)
Parameters
Type Name Description
string normalizedName
Returns
Type Description
TenantConfiguration

FindAsync(Guid)

Declaration
public virtual Task<TenantConfiguration> FindAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<TenantConfiguration>

FindAsync(string)

Declaration
public virtual Task<TenantConfiguration> FindAsync(string normalizedName)
Parameters
Type Name Description
string normalizedName
Returns
Type Description
Task<TenantConfiguration>

GetCacheItem(Guid?, string)

Declaration
[Obsolete("Use GetCacheItemAsync method.")]
protected virtual TenantConfigurationCacheItem GetCacheItem(Guid? id, string normalizedName)
Parameters
Type Name Description
Guid? id
string normalizedName
Returns
Type Description
TenantConfigurationCacheItem

GetCacheItemAsync(Guid?, string)

Declaration
protected virtual Task<TenantConfigurationCacheItem> GetCacheItemAsync(Guid? id, string normalizedName)
Parameters
Type Name Description
Guid? id
string normalizedName
Returns
Type Description
Task<TenantConfigurationCacheItem>

GetListAsync(bool)

Declaration
public virtual Task<IReadOnlyList<TenantConfiguration>> GetListAsync(bool includeDetails = false)
Parameters
Type Name Description
bool includeDetails
Returns
Type Description
Task<IReadOnlyList<TenantConfiguration>>

SetCache(string, Tenant)

Declaration
[Obsolete("Use SetCacheAsync method.")]
protected virtual TenantConfigurationCacheItem SetCache(string cacheKey, Tenant tenant)
Parameters
Type Name Description
string cacheKey
Tenant tenant
Returns
Type Description
TenantConfigurationCacheItem

SetCacheAsync(string, Tenant)

Declaration
protected virtual Task<TenantConfigurationCacheItem> SetCacheAsync(string cacheKey, Tenant tenant)
Parameters
Type Name Description
string cacheKey
Tenant tenant
Returns
Type Description
Task<TenantConfigurationCacheItem>

Implements

ITenantStore
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform