Exemplo n.º 1
0
        // 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();
            }
        }
Exemplo n.º 2
0
 public JwtGenerator(UserManager <User> um,
                     IConfiguration conf, AuthServiceContext context)
 {
     _userManager   = um;
     _configuration = conf;
     _context       = context;
 }
Exemplo n.º 3
0
 public AuthService(SignInManager <User> sim, UserManager <User> um, IJwtGenerator jwt, AuthServiceContext context,
                    IConfiguration configuration)
 {
     _signInManager = sim;
     _userManager   = um;
     _jwt           = jwt;
     _context       = context;
     _configuration = configuration;
 }
Exemplo n.º 4
0
 public AccountController(AuthServiceContext context, IAuthService authService)
 {
     _authService = authService;
 }