Esempio n. 1
0
 public AccountController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, RoleManager <IdentityRole> roleManager, IJwtAuthenticateService jwtAuthenticate, IConfiguration configuration, ICartService cartService, IEmailSender emailSender)
 {
     _userManager     = userManager;
     _signInManager   = signInManager;
     _roleManager     = roleManager;
     _jwtAuthenticate = jwtAuthenticate;
     _configuration   = configuration;
     _cartService     = cartService;
     _emailSender     = emailSender;
 }
 /// <summary>
 /// We need our own implementation of the AuthenticationService and a logger...
 /// </summary>
 public AuthenticateController(IJwtAuthenticateService authService, ILogger <AuthenticateController> logger)
 {
     _logger      = logger;
     _authService = authService;
 }
 public JwtAuthenticationController(ILogger <JwtAuthenticationController> logger, IJwtAuthenticateService jwtAuthenticateService)
 {
     this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
     this.jwtAuthenticateService = jwtAuthenticateService ?? throw new ArgumentNullException(nameof(jwtAuthenticateService));
 }