public EmailSender( IEmailRepository emailRepository, IUnitOfWork unitOfWork, IEmailSenderSettings settings) { this.emailRepository = emailRepository; this.unitOfWork = unitOfWork; this.settings = settings; emails = new List <Email>(); }
/// <summary> /// Construtor padrão /// </summary> /// <param name="emailSenderSettings">Configurações para envio de email Smtp</param> /// <param name="logger">Logger</param> public EmailSender( IEmailSenderSettings emailSenderSettings, ILogger <EmailSender> logger) { try { _emailSenderSettings = emailSenderSettings; _logger = logger; } catch (Exception ex) { _logger.LogError(ex, ex.Message); } }
public EmailService(IEmailSenderSettings emailSenderSettings) { _emailSenderSettings = emailSenderSettings; }