Class TenantConfigurationProvider
Inheritance
object
TenantConfigurationProvider
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.MultiTenancy
Assembly: Volo.Abp.MultiTenancy.dll
Syntax
public class TenantConfigurationProvider : ITenantConfigurationProvider, ITransientDependency
Constructors
TenantConfigurationProvider(ITenantResolver, ITenantStore, ITenantResolveResultAccessor, IStringLocalizer<AbpMultiTenancyResource>)
Declaration
public TenantConfigurationProvider(ITenantResolver tenantResolver, ITenantStore tenantStore, ITenantResolveResultAccessor tenantResolveResultAccessor, IStringLocalizer<AbpMultiTenancyResource> stringLocalizer)
Parameters
Type | Name | Description |
---|---|---|
ITenantResolver | tenantResolver | |
ITenantStore | tenantStore | |
ITenantResolveResultAccessor | tenantResolveResultAccessor | |
Microsoft.Extensions.Localization.IStringLocalizer<T><AbpMultiTenancyResource> | stringLocalizer |
Properties
StringLocalizer
Declaration
protected virtual IStringLocalizer<AbpMultiTenancyResource> StringLocalizer { get; }
Property Value
Type | Description |
---|---|
Microsoft.Extensions.Localization.IStringLocalizer<T><AbpMultiTenancyResource> |
TenantResolver
Declaration
protected virtual ITenantResolver TenantResolver { get; }
Property Value
Type | Description |
---|---|
ITenantResolver |
TenantResolveResultAccessor
Declaration
protected virtual ITenantResolveResultAccessor TenantResolveResultAccessor { get; }
Property Value
Type | Description |
---|---|
ITenantResolveResultAccessor |
TenantStore
Declaration
protected virtual ITenantStore TenantStore { get; }
Property Value
Type | Description |
---|---|
ITenantStore |
Methods
FindTenantAsync(string)
Declaration
protected virtual Task<TenantConfiguration?> FindTenantAsync(string tenantIdOrName)
Parameters
Type | Name | Description |
---|---|---|
string | tenantIdOrName |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><TenantConfiguration> |
GetAsync(bool)
Declaration
public virtual Task<TenantConfiguration?> GetAsync(bool saveResolveResult = false)
Parameters
Type | Name | Description |
---|---|---|
bool | saveResolveResult |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><TenantConfiguration> |