public Functional(UserManager <ApplicationUser> userManager,
                   RoleManager <IdentityRole> roleManager,
                   ApplicationDbContext context,
                   SignInManager <ApplicationUser> signInManager,
                   IRoles roles,
                   IOptions <SuperAdminDefaultOptions> superAdminDefaultOptions)
 {
     _userManager              = userManager;
     _roleManager              = roleManager;
     _context                  = context;
     _signInManager            = signInManager;
     _roles                    = roles;
     _superAdminDefaultOptions = superAdminDefaultOptions.Value;
 }
Beispiel #2
0
 public Functional(UserManager <ApplicationUser> userManager,
                   RoleManager <IdentityRole> roleManager,
                   ApplicationDbContext context,
                   SignInManager <ApplicationUser> signInManager,
                   IRoles roles,
                   IOptions <SuperAdminDefaultOptions> superAdminDefaultOptions,
                   IHttpContextAccessor httpContextAccessor,
                   IMapper mapper)
 {
     _userManager              = userManager;
     _roleManager              = roleManager;
     _context                  = context;
     _signInManager            = signInManager;
     _roles                    = roles;
     _superAdminDefaultOptions = superAdminDefaultOptions.Value;
     _httpContextAccessor      = httpContextAccessor;
     _mapper                   = mapper;
 }