Example #1
0
 public AccountController(IAccountService accountService, IMapper mapper, IOptions <AppSettings> appSettings,
                          ApplicationUserManager userManager,
                          ApplicationSignInManager signInManager)
 {
     _userAuthBusiness = new UserAuthBusiness(signInManager, userManager, mapper);
     _mapper           = mapper;
     _accountService   = accountService;
     _appSettings      = appSettings.Value;
 }
 public UserController(
     ApplicationUserManager userManager,
     ApplicationSignInManager signInManager,
     IOptions <IdentityCookieOptions> identityCookieOptions,
     IEmailSender emailSender,
     ISmsSender smsSender,
     ILoggerFactory loggerFactory,
     IMapper mapper)
 {
     _userAuthBusiness     = new UserAuthBusiness(signInManager, userManager, mapper);
     _externalCookieScheme = identityCookieOptions.Value.ExternalCookieAuthenticationScheme;
     _emailSender          = emailSender;
     _smsSender            = smsSender;
     _logger = loggerFactory.CreateLogger <UserController>();
 }