/// <summary>
 /// CTOR. None of the dependency injection parameters must have scoped lifetime.
 /// </summary>
 /// <param name="backgroundWebHost"></param>
 /// <param name="mailMergeService"></param>
 /// <param name="timeZoneConverter"></param>
 /// <param name="logger"></param>
 public FixtureEmailTask(BackgroundWebHost backgroundWebHost, IMailMergeService mailMergeService,
                         Axuno.Tools.DateAndTime.TimeZoneConverter timeZoneConverter,
                         ILogger <FixtureEmailTask> logger)
     : base(backgroundWebHost, mailMergeService, logger)
 {
     _timeZoneConverter = timeZoneConverter;
 }
 /// <summary>
 /// CTOR. None of the dependency injection parameters must have scoped lifetime.
 /// </summary>
 /// <param name="backgroundWebHost"></param>
 /// <param name="mailMergeService"></param>
 /// <param name="logger"></param>
 public TeamApplicationEmailTask(BackgroundWebHost backgroundWebHost, IMailMergeService mailMergeService,
                                 SiteContext siteContext,
                                 ILogger <TeamApplicationEmailTask> logger)
     : base(backgroundWebHost, mailMergeService, logger)
 {
     _siteContext = siteContext;
 }
 public AbstractEmailTask(BackgroundWebHost backgroundWebHost, IMailMergeService mailMergeService, ILogger <AbstractEmailTask> logger)
 {
     BackgroundWebHost = backgroundWebHost;
     MailMergeService  = mailMergeService;
     Logger            = logger;
     Timeout           = TimeSpan.FromMinutes(1);
     MailMessage       = MailMergeService.CreateStandardMessage();
 }
예제 #4
0
 /// <summary>
 /// CTOR. None of the dependency injection parameters must have scoped lifetime.
 /// </summary>
 /// <param name="backgroundWebHost"></param>
 /// <param name="mailMergeService"></param>
 /// <param name="logger"></param>
 public ContactEmailTask(BackgroundWebHost backgroundWebHost, IMailMergeService mailMergeService,
                         ILogger <ContactEmailTask> logger)
     : base(backgroundWebHost, mailMergeService, logger)
 {
 }