Exemplo n.º 1
0
 protected ScopedProcessor(IServiceScopeFactory serviceScopeFactory, ITargetService targetService, IStatuService statuService
                           , IHttpClientFactory clientFactory, IEmailSender emailSender) : base()
 {
     _serviceScopeFactory = serviceScopeFactory;
     _targetService       = targetService;
     _statuService        = statuService;
     _clientFactory       = clientFactory;
     _emailSender         = emailSender;
 }
Exemplo n.º 2
0
 public ScheduledProcessor(IServiceScopeFactory serviceScopeFactory, ITargetService targetService, IStatuService statuService
                           , IHttpClientFactory clientFactory, IEmailSender emailSender) : base(serviceScopeFactory, targetService, statuService, clientFactory, emailSender)
 {
     _schedule = CrontabSchedule.Parse(Schedule);
     _nextRun  = _schedule.GetNextOccurrence(DateTime.Now);
 }
Exemplo n.º 3
0
 public ScheduleTask(IServiceScopeFactory serviceScopeFactory, ITargetService targetService, IStatuService statuService
                     , IHttpClientFactory clientFactory, IEmailSender emailSender) : base(serviceScopeFactory, targetService, statuService, clientFactory, emailSender)
 {
 }