Class TenantStore
Implements
ITenantStore
ITransientDependency
Assembly: Volo.Saas.Domain.dll
Syntax
public class TenantStore : ITenantStore, ITransientDependency
Constructors
TenantStore(ITenantRepository, IObjectMapper<SaasDomainModule>, ICurrentTenant, IDistributedCache<TenantCacheItem>, ITenantManager)
Declaration
public TenantStore(ITenantRepository tenantRepository, IObjectMapper<SaasDomainModule> objectMapper, ICurrentTenant currentTenant, IDistributedCache<TenantCacheItem> cache, ITenantManager tenantManager)
Parameters
Properties
Cache
Declaration
protected IDistributedCache<TenantCacheItem> Cache { get; }
Property Value
CurrentTenant
Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
Type |
Description |
ICurrentTenant |
|
ObjectMapper
Declaration
protected IObjectMapper<SaasDomainModule> ObjectMapper { get; }
Property Value
TenantManager
Declaration
protected ITenantManager TenantManager { get; }
Property Value
TenantRepository
Declaration
protected ITenantRepository TenantRepository { get; }
Property Value
Methods
CalculateCacheKey(Guid?, string)
Declaration
protected virtual string CalculateCacheKey(Guid? id, string name)
Parameters
Returns
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 name)
Parameters
Type |
Name |
Description |
string |
name |
|
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 name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
Type |
Description |
Task<TenantConfiguration> |
|
GetCacheItem(Guid?, string)
Declaration
[Obsolete("Use GetCacheItemAsync method.")]
protected virtual TenantCacheItem GetCacheItem(Guid? id, string name)
Parameters
Returns
GetCacheItemAsync(Guid?, string)
Declaration
protected virtual Task<TenantCacheItem> GetCacheItemAsync(Guid? id, string name)
Parameters
Returns
SetCache(string, Tenant)
Declaration
[Obsolete("Use SetCacheAsync method.")]
protected virtual TenantCacheItem SetCache(string cacheKey, Tenant tenant)
Parameters
Returns
SetCacheAsync(string, Tenant)
Declaration
protected virtual Task<TenantCacheItem> SetCacheAsync(string cacheKey, Tenant tenant)
Parameters
Returns
Implements
Volo.Abp.MultiTenancy.ITenantStore
Volo.Abp.DependencyInjection.ITransientDependency