Beispiel #1
0
 public MailingSettingsController(
     UsersService userService,
     MailingSettingsService mailingSettingService,
     CronService cronService,
     TagService tagsService,
     MailService mailService,
     ArticleService articleService)
 {
     _userService           = userService;
     _mailingSettingService = mailingSettingService;
     _cronService           = cronService;
     _tagsService           = tagsService;
     _mailService           = mailService;
     _articleService        = articleService;
 }
Beispiel #2
0
 public NotificationsSender(IServiceScopeFactory serviceScopeFactory,
                            IConfiguration configuration,
                            MailService mailService,
                            CronService cronService,
                            ILogger <NotificationsSender> logger)
 {
     _mailService         = mailService;
     _cronService         = cronService;
     _logger              = logger;
     _serviceScopeFactory = serviceScopeFactory;
     if (!int.TryParse(configuration["SendMailsBeforeInMinutes"], out _sendMailsBeforeInMinutes))
     {
         _sendMailsBeforeInMinutes = 60;
     }
 }
Beispiel #3
0
 public MailingSettingsService(ApplicationContext db, CronService cronService, ArticleService articleService)
 {
     _db             = db;
     _cronService    = cronService;
     _articleService = articleService;
 }