예제 #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;
 }
예제 #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;
     }
 }
예제 #3
0
 public MailingSettingsService(ApplicationContext db, CronService cronService, ArticleService articleService)
 {
     _db             = db;
     _cronService    = cronService;
     _articleService = articleService;
 }