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