Class AbpPageModel
Assembly: Volo.Abp.AspNetCore.Mvc.UI.dll
Syntax
public abstract class AbpPageModel : PageModel, IAsyncPageFilter, IPageFilter, IFilterMetadata
Constructors
AbpPageModel()
Declaration
Properties
AlertManager
Declaration
protected IAlertManager AlertManager { get; }
Property Value
Alerts
Declaration
protected AlertList Alerts { get; }
Property Value
AppUrlProvider
Declaration
protected IAppUrlProvider AppUrlProvider { get; }
Property Value
AuthorizationService
Declaration
protected IAuthorizationService AuthorizationService { get; }
Property Value
Clock
Declaration
protected IClock Clock { get; }
Property Value
CurrentTenant
Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
CurrentUnitOfWork
Declaration
protected IUnitOfWork? CurrentUnitOfWork { get; }
Property Value
CurrentUser
Declaration
protected ICurrentUser CurrentUser { get; }
Property Value
GuidGenerator
Declaration
protected IGuidGenerator GuidGenerator { get; }
Property Value
L
Declaration
protected IStringLocalizer L { get; }
Property Value
LazyServiceProvider
Declaration
public IAbpLazyServiceProvider LazyServiceProvider { get; set; }
Property Value
LocalizationResourceType
Declaration
protected Type? LocalizationResourceType { get; set; }
Property Value
Logger
Declaration
protected ILogger Logger { get; }
Property Value
LoggerFactory
Declaration
protected ILoggerFactory LoggerFactory { get; }
Property Value
ModelValidator
Declaration
protected IModelStateValidator ModelValidator { get; }
Property Value
ObjectMapper
Declaration
protected IObjectMapper ObjectMapper { get; }
Property Value
ObjectMapperContext
Declaration
protected Type? ObjectMapperContext { get; set; }
Property Value
ServiceProvider
Declaration
[Obsolete("Use LazyServiceProvider instead.")]
public IServiceProvider ServiceProvider { get; set; }
Property Value
SettingProvider
Declaration
protected ISettingProvider SettingProvider { get; }
Property Value
StringLocalizerFactory
Declaration
protected IStringLocalizerFactory StringLocalizerFactory { get; }
Property Value
UnitOfWorkManager
Declaration
protected IUnitOfWorkManager UnitOfWorkManager { get; }
Property Value
Methods
CheckPolicyAsync(string)
Declaration
protected virtual Task CheckPolicyAsync(string policyName)
Parameters
Type |
Name |
Description |
string |
policyName |
|
Returns
CreateLocalizer()
Declaration
protected virtual IStringLocalizer CreateLocalizer()
Returns
GetAppHomeUrlAsync()
Declaration
protected virtual Task<string> GetAppHomeUrlAsync()
Returns
GetRedirectUrlAsync(string, string?)
Declaration
protected virtual Task<string> GetRedirectUrlAsync(string returnUrl, string? returnUrlHash = null)
Parameters
Returns
NoContent()
Declaration
protected virtual NoContentResult NoContent()
Returns
NormalizeReturnUrlAsync(string)
Declaration
protected virtual Task<string> NormalizeReturnUrlAsync(string returnUrl)
Parameters
Type |
Name |
Description |
string |
returnUrl |
|
Returns
PartialView<TModel>(string, TModel)
Declaration
protected virtual PartialViewResult PartialView<TModel>(string viewName, TModel model)
Parameters
Type |
Name |
Description |
string |
viewName |
|
TModel |
model |
|
Returns
Type Parameters
RedirectSafelyAsync(string, string?)
Declaration
protected virtual Task<RedirectResult> RedirectSafelyAsync(string returnUrl, string? returnUrlHash = null)
Parameters
Returns
ValidateModel()
Declaration
protected virtual void ValidateModel()
Implements
Extension Methods