コード例 #1
0
 public BookLogService(IBookLogRepository repo, IOptions <AppSettingsModel> options, SendEmailService send, IEmailRecipientRepository emails, IMapper mapper)
 {
     this._repo    = repo;
     this._options = options;
     this._send    = send;
     this._emails  = emails;
     this._mapper  = mapper;
 }
コード例 #2
0
 public EmailDeliveryTask(IEmailBlastRepository emailBlastRepository, ITemplateEngine templateEngine,
                          IEmailRecipientRepository recipientRepository, IRepository <Template> templateRepository,
                          IRepository <Customer> customerRepository, ISmtpClient smtpClient,
                          ILogger <EmailDeliveryTask>?logger = null)
 {
     _emailBlastRepository = emailBlastRepository;
     _templateEngine       = templateEngine;
     _recipientRepository  = recipientRepository;
     _templateRepository   = templateRepository;
     _customerRepository   = customerRepository;
     _smtpClient           = smtpClient;
     _logger = logger ?? NullLogger <EmailDeliveryTask> .Instance;
 }
コード例 #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="emailRecipientRepository"></param>
 /// <param name="emailRecipientTypeRepository"></param>
 /// <param name="emailMessageRepository"></param>
 public EmailRecipientManipulation(IEmailRecipientRepository emailRecipientRepository, IEmailRecipientTypeRepository emailRecipientTypeRepository, IEmailMessageRepository emailMessageRepository)
 {
     _emailRecipientRepository     = emailRecipientRepository;
     _emailMessageRepository       = emailMessageRepository;
     _emailRecipientTypeRepository = emailRecipientTypeRepository;
 }