/// <summary> /// Initializes a new instance of the <see cref="AuthController"/> class. /// </summary> /// <param name="context">The context.</param> /// <param name="signInMgr">The sign in MGR.</param> /// <param name="userMgr">The user MGR.</param> /// <param name="hasher">The hasher.</param> /// <param name="logger">The logger.</param> /// <param name="config">The configuration.</param> public AuthController(PortfolioIdentityContext context, SignInManager <PortfolioIdentityUser> signInMgr, UserManager <PortfolioIdentityUser> userMgr, IPasswordHasher <PortfolioIdentityUser> hasher, ILogger <AuthController> logger, IConfigurationRoot config) { _context = context; _signInMgr = signInMgr; _logger = logger; _userMgr = userMgr; _hasher = hasher; _config = config; }
public IdentityDbInitializer(IServiceProvider serviceProvider) { _context = (PortfolioIdentityContext)serviceProvider.GetService(typeof(PortfolioIdentityContext)); }