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.Saas.Tenants
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
Type Name Description
ITenantRepository tenantRepository
IObjectMapper<SaasDomainModule> objectMapper
ICurrentTenant currentTenant
IDistributedCache<TenantCacheItem> cache
ITenantManager tenantManager

Properties

Cache

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

CurrentTenant

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

ObjectMapper

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

TenantManager

Declaration
protected ITenantManager TenantManager { get; }
Property Value
Type Description
ITenantManager

TenantRepository

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

Methods

CalculateCacheKey(Guid?, string)

Declaration
protected virtual string CalculateCacheKey(Guid? id, string name)
Parameters
Type Name Description
Guid? id
string name
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 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
Type Name Description
Guid? id
string name
Returns
Type Description
TenantCacheItem

GetCacheItemAsync(Guid?, string)

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

SetCache(string, Tenant)

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

SetCacheAsync(string, Tenant)

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

Implements

Volo.Abp.MultiTenancy.ITenantStore
Volo.Abp.DependencyInjection.ITransientDependency
In this article
Back to top Powered by Volosoft