Class RemoteTenantStore
Inheritance
System.Object
RemoteTenantStore
Implements
ITransientDependency
Assembly: Volo.Abp.AspNetCore.Mvc.Client.dll
Syntax
public class RemoteTenantStore : ITenantStore, ITransientDependency
Constructors
RemoteTenantStore(IHttpClientProxy<IAbpTenantAppService>, IHttpContextAccessor, IDistributedCache<TenantConfiguration>)
Declaration
public RemoteTenantStore(IHttpClientProxy<IAbpTenantAppService> proxy, IHttpContextAccessor httpContextAccessor, IDistributedCache<TenantConfiguration> cache)
Parameters
Properties
Cache
Declaration
protected IDistributedCache<TenantConfiguration> Cache { get; }
Property Value
HttpContextAccessor
Declaration
protected IHttpContextAccessor HttpContextAccessor { get; }
Property Value
| Type |
Description |
| IHttpContextAccessor |
|
Proxy
Declaration
protected IHttpClientProxy<IAbpTenantAppService> Proxy { get; }
Property Value
Methods
CreateCacheKey(Guid)
Declaration
protected virtual string CreateCacheKey(Guid tenantId)
Parameters
| Type |
Name |
Description |
| System.Guid |
tenantId |
|
Returns
| Type |
Description |
| System.String |
|
CreateCacheKey(String)
Declaration
protected virtual string CreateCacheKey(string tenantName)
Parameters
| Type |
Name |
Description |
| System.String |
tenantName |
|
Returns
| Type |
Description |
| System.String |
|
CreateTenantConfiguration(FindTenantResultDto)
Declaration
protected virtual TenantConfiguration CreateTenantConfiguration(FindTenantResultDto tenantResultDto)
Parameters
Returns
| Type |
Description |
| TenantConfiguration |
|
Find(Guid)
Declaration
public TenantConfiguration Find(Guid id)
Parameters
| Type |
Name |
Description |
| System.Guid |
id |
|
Returns
| Type |
Description |
| TenantConfiguration |
|
Find(String)
Declaration
public TenantConfiguration Find(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
| Type |
Description |
| TenantConfiguration |
|
FindAsync(Guid)
Declaration
public Task<TenantConfiguration> FindAsync(Guid id)
Parameters
| Type |
Name |
Description |
| System.Guid |
id |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TenantConfiguration> |
|
FindAsync(String)
Declaration
public Task<TenantConfiguration> FindAsync(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TenantConfiguration> |
|
Implements
ITransientDependency
Extension Methods