Show / Hide Table of Contents

Class MvcRemoteTenantStore

Inheritance
object
MvcRemoteTenantStore
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.AspNetCore.Mvc.Client
Assembly: Volo.Abp.AspNetCore.Mvc.Client.dll
Syntax
public class MvcRemoteTenantStore : ITenantStore, ITransientDependency

Constructors

MvcRemoteTenantStore(AbpTenantClientProxy, IHttpContextAccessor, IDistributedCache<TenantConfiguration>)

Declaration
public MvcRemoteTenantStore(AbpTenantClientProxy tenantAppService, IHttpContextAccessor httpContextAccessor, IDistributedCache<TenantConfiguration> cache)
Parameters
Type Name Description
AbpTenantClientProxy tenantAppService
Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor
IDistributedCache<TenantConfiguration> cache

Properties

Cache

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

HttpContextAccessor

Declaration
protected IHttpContextAccessor HttpContextAccessor { get; }
Property Value
Type Description
Microsoft.AspNetCore.Http.IHttpContextAccessor

TenantAppService

Declaration
protected AbpTenantClientProxy TenantAppService { get; }
Property Value
Type Description
AbpTenantClientProxy

Methods

CreateCacheKey(Guid)

Declaration
protected virtual string CreateCacheKey(Guid tenantId)
Parameters
Type Name Description
System.Guid tenantId
Returns
Type Description
string

CreateCacheKey(string)

Declaration
protected virtual string CreateCacheKey(string tenantName)
Parameters
Type Name Description
string tenantName
Returns
Type Description
string

CreateTenantConfiguration(FindTenantResultDto)

Declaration
protected virtual TenantConfiguration CreateTenantConfiguration(FindTenantResultDto tenantResultDto)
Parameters
Type Name Description
FindTenantResultDto tenantResultDto
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
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<TResult><TenantConfiguration>

FindAsync(string)

Declaration
public Task<TenantConfiguration> FindAsync(string name)
Parameters
Type Name Description
string name
Returns
Type Description
System.Threading.Tasks.Task<TResult><TenantConfiguration>

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>>)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In This Article
Back to top Powered by Volosoft