Exemple #1
0
 public EmailSender(
     IEmailRepository emailRepository,
     IUnitOfWork unitOfWork,
     IEmailSenderSettings settings)
 {
     this.emailRepository = emailRepository;
     this.unitOfWork      = unitOfWork;
     this.settings        = settings;
     emails = new List <Email>();
 }
Exemple #2
0
 /// <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);
     }
 }
Exemple #3
0
 public EmailService(IEmailSenderSettings emailSenderSettings)
 {
     _emailSenderSettings = emailSenderSettings;
 }