public PasswordController(MySysIdentityDbContext identityContext, MyContext context, // UserService userService, UserManager <ApplicationUser> userManager, // RoleManager<ExamIdentityRole> roleManager, SignInManager <ApplicationUser> signInManager, IConfiguration configuration, IOptions <JwtIssuerOptions> jwtOptions, ILogger <AccountController> logger) { _identityContext = identityContext; _ctx = context; // _userService = userService; _userManager = userManager; // _roleManager = roleManager; _signInManager = signInManager; _jwtOptions = jwtOptions.Value; _logger = logger; SharedFunc.configuration = configuration; SharedFunc.logger = _logger; _serializerSettings = new JsonSerializerSettings { Formatting = Formatting.Indented }; }
/// <summary> /// Initializes a new instance of the <see cref="AccountController"/> class. /// </summary> /// <param name="identityContext">The identityContext<see cref="MySysIdentityDbContext"/></param> /// <param name="context">The context<see cref="GoodRussianDbContext"/></param> /// <param name="userService">The userService<see cref="UserService"/></param> /// <param name="userManager">The userManager<see cref="UserManager{ApplicationUser}"/></param> /// <param name="roleManager">The roleManager<see cref="RoleManager{MyIdentityRole}"/></param> /// <param name="signInManager">The signInManager<see cref="SignInManager{ApplicationUser}"/></param> /// <param name="jwtOptions">The jwtOptions<see cref="IOptions{JwtIssuerOptions}"/></param> /// <param name="logger">The logger<see cref="ILogger{AccountController}"/></param> public AccountController(MySysIdentityDbContext identityContext, GoodRussianDbContext context, UserService userService, UserManager <ApplicationUser> userManager, RoleManager <MyIdentityRole> roleManager, SignInManager <ApplicationUser> signInManager, IOptions <JwtIssuerOptions> jwtOptions, ILogger <AccountController> logger) { _identityContext = identityContext; _context = context; _userService = userService; _userManager = userManager; _roleManager = roleManager; _signInManager = signInManager; _jwtOptions = jwtOptions.Value; _logger = logger; _serializerSettings = new JsonSerializerSettings { Formatting = Formatting.Indented }; }