Class AppUrlProvider
Inheritance
object
AppUrlProvider
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.UI.Navigation.dll
Syntax
public class AppUrlProvider : IAppUrlProvider, ITransientDependency
Constructors
AppUrlProvider(IOptions<AppUrlOptions>, ICurrentTenant, ITenantStore)
Declaration
public AppUrlProvider(IOptions<AppUrlOptions> options, ICurrentTenant currentTenant, ITenantStore tenantStore)
Parameters
Fields
TenantIdPlaceHolder
Declaration
public const string TenantIdPlaceHolder = "{{tenantId}}"
Field Value
TenantNamePlaceHolder
Declaration
public const string TenantNamePlaceHolder = "{{tenantName}}"
Field Value
Properties
CurrentTenant
Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
Logger
Declaration
public ILogger<AppUrlProvider> Logger { get; set; }
Property Value
| Type |
Description |
| Microsoft.Extensions.Logging.ILogger<TCategoryName><AppUrlProvider> |
|
Options
Declaration
protected AppUrlOptions Options { get; }
Property Value
TenantStore
Declaration
protected ITenantStore TenantStore { get; }
Property Value
Methods
Declaration
protected virtual Task<string> GetConfiguredUrl(string appName, string urlName)
Parameters
| Type |
Name |
Description |
| string |
appName |
|
| string |
urlName |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><string> |
|
GetUrlAsync(string, string)
Declaration
public virtual Task<string> GetUrlAsync(string appName, string urlName = null)
Parameters
| Type |
Name |
Description |
| string |
appName |
|
| string |
urlName |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><string> |
|
GetUrlOrNullAsync(string, string)
Declaration
public Task<string> GetUrlOrNullAsync(string appName, string urlName = null)
Parameters
| Type |
Name |
Description |
| string |
appName |
|
| string |
urlName |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><string> |
|
IsRedirectAllowedUrl(string)
Declaration
public bool IsRedirectAllowedUrl(string url)
Parameters
| Type |
Name |
Description |
| string |
url |
|
Returns
ReplacePlaceHoldersAsync(string)
Declaration
protected virtual Task<string> ReplacePlaceHoldersAsync(string url)
Parameters
| Type |
Name |
Description |
| string |
url |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><string> |
|
Implements
Extension Methods