Class AccountGeneral
General account page.
public sealed class AccountGeneral : InfoEditPage<UserInfo>, IPage
- Inheritance
-
objectAccountGeneral
- Implements
- Inherited Members
- Extension Methods
Constructors
AccountGeneral(IFormComponentMapper, IFormDataBinder, IServiceProvider, IAuthenticatedUserAccessor, AdminSignInManager, IPageLinkGenerator, IOptions<AdminExternalAuthenticationProviderOptions>)
Initializes a new instance of AccountGeneral.
public AccountGeneral(IFormComponentMapper mapper, IFormDataBinder formDataBinder, IServiceProvider services, IAuthenticatedUserAccessor authenticatedUserAccessor, AdminSignInManager signInManager, IPageLinkGenerator pageLinkGenerator, IOptions<AdminExternalAuthenticationProviderOptions> adminExternalAuthenticationProviderOptionsAcessor)
Parameters
mapper
IFormComponentMapperformDataBinder
IFormDataBinderservices
IServiceProviderauthenticatedUserAccessor
IAuthenticatedUserAccessorsignInManager
AdminSignInManagerpageLinkGenerator
IPageLinkGeneratoradminExternalAuthenticationProviderOptionsAcessor
IOptions<AdminExternalAuthenticationProviderOptions>
Properties
ObjectId
Gets or sets user identifier.
public override int ObjectId { get; set; }
Property Value
- int
Methods
ConfigurePage()
Set up page's configuration. Configures the submit action.
public override Task ConfigurePage()
Returns
- Task
GetFormItems()
Prepares form items for editing object of the specified ObjectType.
protected override Task<ICollection<IFormItem>> GetFormItems()
Returns
- Task<ICollection<IFormItem>>
Returns the collection of form items.
GetSubmitSuccessResponse(UserInfo, ICollection<IFormItem>)
Response that has to be returned after successful form submission.
protected override Task<ICommandResponse> GetSubmitSuccessResponse(UserInfo savedInfoObject, ICollection<IFormItem> items)
Parameters
savedInfoObject
UserInfoObject info after persisting.
items
ICollection<IFormItem>Collection with updated form items.
Returns
- Task<ICommandResponse>
ResetAuthenticatorKey()
Resets the authenticator key.
public Task<ICommandResponse> ResetAuthenticatorKey()
Returns
- Task<ICommandResponse>
SetFormData(UserInfo, IFormFieldValueProvider)
Sets the infoObject
.
protected override Task SetFormData(UserInfo infoObject, IFormFieldValueProvider fieldValueProvider)
Parameters
infoObject
UserInfoInfo object to be set.
fieldValueProvider
IFormFieldValueProviderProvider of form field values.
Returns
- Task