Class MultiTenantUrlProvider
Inheritance
MultiTenantUrlProvider
Assembly: Volo.Abp.MultiTenancy.dll
Syntax
public class MultiTenantUrlProvider : IMultiTenantUrlProvider, ITransientDependency
Constructors
MultiTenantUrlProvider(ICurrentTenant, ITenantStore)
Declaration
public MultiTenantUrlProvider(ICurrentTenant currentTenant, ITenantStore tenantStore)
Parameters
Fields
TenantIdPlaceHolder
Declaration
public const string TenantIdPlaceHolder = "{{tenantId}}"
Field Value
TenantNamePlaceHolder
Declaration
public const string TenantNamePlaceHolder = "{{tenantName}}"
Field Value
TenantPlaceHolder
Declaration
public const string TenantPlaceHolder = "{0}"
Field Value
Properties
CurrentTenant
Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
TenantStore
Declaration
protected ITenantStore TenantStore { get; }
Property Value
Methods
GetCurrentTenantNameAsync()
Declaration
protected virtual Task<string> GetCurrentTenantNameAsync()
Returns
GetUrlAsync(string)
Declaration
public virtual Task<string> GetUrlAsync(string templateUrl)
Parameters
Type |
Name |
Description |
string |
templateUrl |
|
Returns
ReplacePlaceHolderAsync(string, string)
Declaration
protected virtual Task<string> ReplacePlaceHolderAsync(string templateUrl, string placeHolder)
Parameters
Returns
ReplacePlaceHoldersAsync(string)
Declaration
protected virtual Task<string> ReplacePlaceHoldersAsync(string templateUrl)
Parameters
Type |
Name |
Description |
string |
templateUrl |
|
Returns
Implements
Extension Methods