Class ImpersonateTenantModel
Inheritance
ImpersonateTenantModel
Assembly: Volo.Abp.Account.Pro.Public.Web.dll
Syntax
[Authorize]
[IgnoreAntiforgeryToken]
public class ImpersonateTenantModel : AccountPageModel
Constructors
ImpersonateTenantModel(IOptions<AbpAccountOptions>, IPermissionChecker, ICurrentPrincipalAccessor)
Declaration
public ImpersonateTenantModel(IOptions<AbpAccountOptions> accountOptions, IPermissionChecker permissionChecker, ICurrentPrincipalAccessor currentPrincipalAccessor)
Parameters
Type |
Name |
Description |
IOptions<AbpAccountOptions> |
accountOptions |
|
IPermissionChecker |
permissionChecker |
|
ICurrentPrincipalAccessor |
currentPrincipalAccessor |
|
Properties
AccountOptions
Declaration
protected AbpAccountOptions AccountOptions { get; }
Property Value
CurrentPrincipalAccessor
Declaration
protected ICurrentPrincipalAccessor CurrentPrincipalAccessor { get; }
Property Value
Type |
Description |
ICurrentPrincipalAccessor |
|
PermissionChecker
Declaration
protected IPermissionChecker PermissionChecker { get; }
Property Value
Type |
Description |
IPermissionChecker |
|
ReturnUrl
Declaration
[HiddenInput]
[BindProperty(SupportsGet = true)]
public string ReturnUrl { get; set; }
Property Value
TenantId
Declaration
[BindProperty(SupportsGet = true)]
[Required]
public Guid TenantId { get; set; }
Property Value
TenantUserName
Declaration
[BindProperty(SupportsGet = true)]
public string TenantUserName { get; set; }
Property Value
Methods
OnGetAsync()
Declaration
public virtual Task<IActionResult> OnGetAsync()
Returns
OnPostAsync()
Declaration
public virtual Task<IActionResult> OnPostAsync()
Returns