Show / Hide Table of Contents

Class MvcRemoteTenantStore

Inheritance
System.Object
MvcRemoteTenantStore
Implements
ITransientDependency
Namespace: Volo.Abp.AspNetCore.Mvc.Client
Assembly: Volo.Abp.AspNetCore.Mvc.Client.dll
Syntax
public class MvcRemoteTenantStore : ITenantStore, ITransientDependency

Constructors

MvcRemoteTenantStore(IHttpClientProxy<IAbpTenantAppService>, IHttpContextAccessor, IDistributedCache<TenantConfiguration>)

Declaration
public MvcRemoteTenantStore(IHttpClientProxy<IAbpTenantAppService> proxy, IHttpContextAccessor httpContextAccessor, IDistributedCache<TenantConfiguration> cache)
Parameters
Type Name Description
IHttpClientProxy<IAbpTenantAppService> proxy
Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor
Microsoft.Extensions.Caching.Distributed.IDistributedCache<TenantConfiguration> cache

Properties

Cache

Declaration
protected IDistributedCache<TenantConfiguration> Cache { get; }
Property Value
Type Description
Microsoft.Extensions.Caching.Distributed.IDistributedCache<TenantConfiguration>

HttpContextAccessor

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

Proxy

Declaration
protected IHttpClientProxy<IAbpTenantAppService> Proxy { get; }
Property Value
Type Description
IHttpClientProxy<IAbpTenantAppService>

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
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
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

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft