public AccountController(AccountManager accountManager, IEmailService emailService, FileManager fileManager, IOptions <EmailVerificationOptions> emailVerificationOptions, IOptions <ResetPasswordOptions> resetPasswordOptions, IOptions <FinancialOptions> financialOptions, IFileService fileService, IHostingEnvironment hostingEnvironment, IOptions <FileOptions> fileOptions, JwtTokenGenerator tokenGenerator, SessionManager sessionManager, AccountItemManager accountItemManager, ShopItemManager shopItemManager, IImageProcessingService imageProcessingService, StatsManager statsManager) { _accountManager = accountManager; _emailService = emailService; _fileManager = fileManager; _fileService = fileService; _accountItemManager = accountItemManager; _shopItemManager = shopItemManager; _imageProcessingService = imageProcessingService; _statsManager = statsManager; _emailVerificationOptions = emailVerificationOptions.Value; _resetPasswordOptions = resetPasswordOptions.Value; }
public EmailService(AccountManager accountManager, IStringLocalizer <Emails> stringLocalizer, IEmailSender emailSender, IOptions <EmailVerificationOptions> emailConfirmationOptions, IOptions <ResetPasswordOptions> resetPasswordOptions) { _accountManager = accountManager; _stringLocalizer = stringLocalizer; _emailSender = emailSender; _emailVerificationOptions = emailConfirmationOptions.Value; _resetPasswordOptions = resetPasswordOptions.Value; }