public MyAccountController(IDbContextFetcher dbContextFetcher, UserManager <MoxUser> userManager, RoleManager <IdentityRole> roleManager, IUserRolesFetcher rolesFetcher, SignInManager <MoxUser> signInManager, IOptions <SettingsOptions> settingsExtension) { this._context = dbContextFetcher.FetchDbContext <Data.MoxIdentityDbContext>(); this._userManager = userManager; this._roleManager = roleManager; this._rolesFetcher = rolesFetcher as Services.UserRolesFetcher; this._signinManager = signInManager; this._settingsExtension = settingsExtension.Value; }
public UserManagementController(IDbContextFetcher dbContextFetcher, IUserValidator <MoxUser> userValidator, UserManager <MoxUser> userManager, RoleManager <IdentityRole> roleManager, IUserRolesFetcher rolesFetcher, SignInManager <MoxUser> signInManager, IStringLocalizer localizer, IOptions <SettingsOptions> settingsExtension, IOptions <MoxIdentityOptions> identityOptions) { this._context = dbContextFetcher.FetchDbContext <Data.MoxIdentityDbContext>(); this._userValidator = userValidator; this._userManager = userManager; this._roleManager = roleManager; this._rolesFetcher = rolesFetcher as Services.UserRolesFetcher; this._signinManager = signInManager; this._localizer = localizer; this._settingsExtension = settingsExtension.Value; this._identityOptions = identityOptions.Value; }