Exemplo n.º 1
0
 public AuthController(TokenAuthOptions tokenOptions, UserManager <ApplicationUser> userManager,
                       SignInManager <ApplicationUser> signInManager, IEmailSender emailSender, IHostingEnvironment environment, IGolfConnectorDbContext db)
 {
     this.userManager   = userManager;
     this.signInManager = signInManager;
     this.tokenOptions  = tokenOptions;
     this.emailSender   = emailSender;
     this.environment   = environment;
     this.db            = db;
     // this.configuration = configuration;
     baseUrl = "http://localhost:7001/";
     // baseUrl = this.configuration.GetSection("Server:BaseUrl").Value;
 }
Exemplo n.º 2
0
 public GolfMatchController(UserManager <ApplicationUser> userManager, IHostingEnvironment environment, IGolfConnectorDbContext db)
 {
     this.userManager = userManager;
     this.environment = environment;
     _db = db;
 }
Exemplo n.º 3
0
 public UserController(IHostingEnvironment environment, IGolfConnectorDbContext db, UserManager <ApplicationUser> userManager)
 {
     _environment     = environment;
     this.userManager = userManager;
     _db = db;
 }