示例#1
0
 public UserController(IUserUseCases userUseCases, ISendMailUseCases sendMailUseCases, IHttpContextAccessor httpContextAccessor, IConfiguration configuration, IMapper mapper)
 {
     _userUseCases        = userUseCases;
     _sendMailUseCases    = sendMailUseCases;
     _httpContextAccessor = httpContextAccessor;
     _configuration       = configuration;
     _mapper = mapper;
 }
示例#2
0
 public UserController(
     IUserUseCases userUseCases,
     SignInManager <User> signInManager,
     RoleManager <IdentityRole> roleManager,
     UserManager <User> userManager,
     IConfiguration configuration)
 {
     _userUseCases  = userUseCases;
     _signInManager = signInManager;
     _roleManager   = roleManager;
     _userManager   = userManager;
     _configuration = configuration;
 }
示例#3
0
 public UserController(ILogger <UserController> logger, IUserUseCases userUseCases)
 {
     _logger       = logger ?? throw new ArgumentNullException(nameof(logger));
     _userUseCases = userUseCases ?? throw new ArgumentNullException(nameof(userUseCases));
 }
示例#4
0
 public LoginController(IUserUseCases userUseCases, IConfiguration configuration)
 {
     _userUseCases  = userUseCases;
     _configuration = configuration;
 }