public AccountsController(IEmailClientService emailClient , IEmailConfigurationProvider emailClientSettingsFactory , UserManager <AppUser> userManager , ApplicationDbContext dbContext , IMapper mapper , IOptions <IdentityInitializerSettings> identitySettings , IHttpContextAccessor httpContextAccessor , ISysEventLogger sysLog , IViewRenderService templateViewRender , IHostingEnvironment hostingEnvironment) : base(userManager, dbContext, identitySettings, httpContextAccessor, sysLog) { _mapper = mapper; _templateViewRender = templateViewRender; _hostingEnvironment = hostingEnvironment; _emailClient = emailClient; _emailClientSettingsFactory = emailClientSettingsFactory; }
public EmailController(IEmailClientService emailClient, IEmailConfigurationProvider emailClientSettingsFactory) { _emailClient = emailClient; _emailClientSettingsFactory = emailClientSettingsFactory; }
/// <summary> /// Initializes a new instance of the <see cref="EmailSender"/> class. /// </summary> /// <param name="emailClient">An object used to send emails.</param> /// <param name="configProvider">An object used to retrieve email configuration settings.</param> public EmailSender(IEmailClientService emailClient, IEmailConfigurationProvider configProvider) { Client = emailClient ?? throw new ArgumentNullException(nameof(emailClient)); _configProvider = configProvider ?? throw new ArgumentNullException(nameof(configProvider)); }
/// <summary> /// Initializes a new instance of the <see cref="EmailSender"/> class. /// </summary> /// <param name="emailClient">An object used to send emails.</param> /// <param name="settingsFactory">An object used to retrieve email configuration settings.</param> public EmailSender(IEmailClientService emailClient, IEmailConfigurationProvider settingsFactory) { _emailClient = emailClient; _settingsFactory = settingsFactory; }