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;
 }
Beispiel #2
0
 public AppHeaderPartialsViewComponent(IOptions <Config> moxConfig, IUserRolesFetcher rolesFetcher)
 {
     this._moxConfig    = moxConfig.Value;
     this._rolesFetcher = rolesFetcher;
 }
Beispiel #3
0
 public AppMenuComponent(IOptions <Config> moxConfig, IUserRolesFetcher rolesFetcher)
 {
     this._moxConfig    = moxConfig.Value;
     this._rolesFetcher = rolesFetcher;
 }
Beispiel #4
0
 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;
 }