예제 #1
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;
     }
 }