// This method gets called by the runtime. Use this method to add services to the container. // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 public Startup(IHostingEnvironment env) { using (var client = new AuthServiceContext()) { client.Database.EnsureCreated(); } }
public JwtGenerator(UserManager <User> um, IConfiguration conf, AuthServiceContext context) { _userManager = um; _configuration = conf; _context = context; }
public AuthService(SignInManager <User> sim, UserManager <User> um, IJwtGenerator jwt, AuthServiceContext context, IConfiguration configuration) { _signInManager = sim; _userManager = um; _jwt = jwt; _context = context; _configuration = configuration; }
public AccountController(AuthServiceContext context, IAuthService authService) { _authService = authService; }