Class TenantStore
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
Properties
Cache
Declaration
protected IDistributedCache<TenantConfigurationCacheItem> Cache { get; }
Property Value
CurrentTenant
Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
ObjectMapper
Declaration
protected IObjectMapper<AbpTenantManagementDomainModule> ObjectMapper { get; }
Property Value
TenantRepository
Declaration
protected ITenantRepository TenantRepository { get; }
Property Value
Methods
CalculateCacheKey(Guid?, string)
Declaration
protected virtual string CalculateCacheKey(Guid? id, string normalizedName)
Parameters
Type |
Name |
Description |
Guid? |
id |
|
string |
normalizedName |
|
Returns
Find(Guid)
Declaration
[Obsolete("Use FindAsync method.")]
public virtual TenantConfiguration Find(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
Find(string)
Declaration
[Obsolete("Use FindAsync method.")]
public virtual TenantConfiguration Find(string normalizedName)
Parameters
Type |
Name |
Description |
string |
normalizedName |
|
Returns
FindAsync(Guid)
Declaration
public virtual Task<TenantConfiguration> FindAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
FindAsync(string)
Declaration
public virtual Task<TenantConfiguration> FindAsync(string normalizedName)
Parameters
Type |
Name |
Description |
string |
normalizedName |
|
Returns
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
GetCacheItemAsync(Guid?, string)
Declaration
protected virtual Task<TenantConfigurationCacheItem> GetCacheItemAsync(Guid? id, string normalizedName)
Parameters
Type |
Name |
Description |
Guid? |
id |
|
string |
normalizedName |
|
Returns
GetListAsync(bool)
Declaration
public virtual Task<IReadOnlyList<TenantConfiguration>> GetListAsync(bool includeDetails = false)
Parameters
Type |
Name |
Description |
bool |
includeDetails |
|
Returns
SetCache(string, Tenant)
Declaration
[Obsolete("Use SetCacheAsync method.")]
protected virtual TenantConfigurationCacheItem SetCache(string cacheKey, Tenant tenant)
Parameters
Returns
SetCacheAsync(string, Tenant)
Declaration
protected virtual Task<TenantConfigurationCacheItem> SetCacheAsync(string cacheKey, Tenant tenant)
Parameters
Returns
Implements
Extension Methods