Beispiel #1
0
 public NewPaymentJob(IScheduleConfig <NewPaymentJob> config, ILogger <NewPaymentJob> logger, IServiceScopeFactory serviceScopeFactory, SendPaymentMail sendPaymentMail)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _logger = logger;
     _serviceScopeFactory = serviceScopeFactory;
     _sendPaymentMail     = sendPaymentMail;
 }
 public KursComUaCommentsUpdater(IScheduleConfig <KursComUaCommentsUpdater> config, ILogger <KursComUaCommentsUpdater> logger, IServiceScopeFactory serviceScopeFactory, IUpdateService updateService)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _updateService       = updateService;
     _logger              = logger;
     _serviceScopeFactory = serviceScopeFactory;
 }
 public HelloWorldWorker(
     IScheduleConfig <HelloWorldWorker> config,
     ILogger <HelloWorldWorker> logger
     ) : base(config.CronExpression, config.TimeZoneInfo)
 {
     _logger = logger;
 }
Beispiel #4
0
 /// <summary>
 /// Constructor to initialize the properties
 /// </summary>
 /// <param name="config">The schedule configurations</param>
 /// <param name="logger">The logger</param>
 /// <param name="httpService">The http helper service</param>
 /// <param name="jobs">The jobs configuration</param>
 public EStartEmpExportJob(IScheduleConfig <EStartEmpExportJob> config, ILogger <EStartEmpExportJob> logger, IHttpService httpService, IOptions <Jobs> jobs)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _logger      = logger;
     _httpService = httpService;
     _job         = jobs.Value.Cron.First(x => x.Key.Equals("EStartEmpExport"));
 }
Beispiel #5
0
 public RedditCronJob(IScheduleConfig <RedditCronJob> config, ILogger <RedditCronJob> logger,
                      IServiceScopeFactory scopeFactory)
     : base(config.CronExpression, config.TimeZoneInfo, logger, scopeFactory)
 {
     _logger       = logger;
     _scopeFactory = scopeFactory;
 }
        public ExpiredItemsCronJobService(IScheduleConfig <ExpiredItemsCronJobService> config, ILogger <ExpiredItemsCronJobService> logger, IServiceScopeFactory serviceScopeFactory)
            : base(config.CronExpression, config.TimeZoneInfo)
        {
            _logger = logger ?? throw new ArgumentNullException(nameof(logger));

            _serviceScopeFactory = serviceScopeFactory ?? throw new ArgumentNullException(nameof(serviceScopeFactory));
        }
Beispiel #7
0
 public FirewallRulesUpdaterJob(
     IScheduleConfig <DnsUpdaterJob> config,
     ILogger <DnsUpdaterJob> logger,
     IServiceProvider serviceProvider) : base(config.CronExpression, config.TimeZoneInfo, logger)
 {
     _serviceProvider = serviceProvider;
 }
Beispiel #8
0
 public LoanCronJob(IScheduleConfig <LoanCronJob> config, ILogger <LoanCronJob> logger, IServiceProvider service)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _scope    = service.CreateScope();
     _logger   = logger;
     _provider = service;
 }
Beispiel #9
0
 public GetDoorsStatusesCronJob(IScheduleConfig <GetDoorsStatusesCronJob> config,
                                ILogger <GetDoorsStatusesCronJob> logger, IServiceScopeFactory serviceScopeFactory)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _serviceScopeFactory = serviceScopeFactory ?? throw new ArgumentNullException(nameof(serviceScopeFactory));
 }
 public OrderJobService(IScheduleConfig <OrderJobService> config,
                        ILogger <OrderJobService> logger,
                        IServiceProvider serviceProvider) : base(config.CronExpression, config.TimeZoneInfo)
 {
     _logger          = logger;
     _serviceProvider = serviceProvider;
 }
Beispiel #11
0
 public LeituraRelogioCronJob(IScheduleConfig <LeituraRelogioCronJob> config, ILogger <LeituraRelogioCronJob> logger,
                              IServiceProvider serviceProvider
                              )
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _logger          = logger;
     _serviceProvider = serviceProvider;
 }
Beispiel #12
0
 public CartCreateReportJob(IScheduleConfig <CartCreateReportJob> config,
                            IJobCartService jobCartService, ISaveDataToSource saveDataToSource, ILogger <CartCreateReportJob> logger)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _jobCartService   = jobCartService;
     _saveDataToSource = saveDataToSource;
     _logger           = logger;
 }
Beispiel #13
0
 public MyCronJob(IScheduleConfig <MyCronJob> config,
                  ILogger <MyCronJob> logger,
                  IServiceProvider serviceProvider)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _logger   = logger;
     _provider = serviceProvider;
 }
 public GetCryptoCurrencyQuotesCronJob(IScheduleConfig <GetCryptoCurrencyQuotesCronJob> config,
                                       ILogger <GetCryptoCurrencyQuotesCronJob> logger,
                                       ICryptoCurrencyService cryptoCurrencyService)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _logger = logger;
     _cryptoCurrencyService = cryptoCurrencyService;
 }
Beispiel #15
0
 public ScheduledFormProcessor(IScheduleConfig <ScheduledFormProcessor> config, IOptionsMonitor <ScheduledDownloaderConfig> options, ILogger <ScheduledFormProcessor> logger, IInboundQueue inboundQueue, IFormProcessor formProcessor)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _options       = options;
     _logger        = logger;
     _inboundQueue  = inboundQueue;
     _formProcessor = formProcessor;
 }
 public StoredProcedureWorker(
     IScheduleConfig <StoredProcedureWorker> config,
     ILogger <StoredProcedureWorker> logger,
     IConfiguration configuration
     ) : base(config.CronExpression, config.TimeZoneInfo)
 {
     _logger        = logger;
     _configuration = configuration;
 }
 public GetTheMovieAllScheduleTask(
     IScheduleConfig <GetTheMovieAllScheduleTask> config,
     ILogger <GetTheMovieAllScheduleTask> logger,
     IServiceScopeFactory serviceScopeFactory
     ) : base(config.CronExpression, config.TimeZoneInfo)
 {
     this._serviceScopeFactory = serviceScopeFactory;
     _logger = logger;
 }
 public BrushingInformationCronJob(
     IScheduleConfig <BrushingInformationCronJob> config,
     ILogger <BrushingInformationCronJob> logger,
     IBrushingInformationService brushingInformationService)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _logger = logger;
     _brushingInformationService = brushingInformationService;
 }
Beispiel #19
0
 public MyCronJob2(IScheduleConfig <MyCronJob2> config,
                   ILogger <MyCronJob2> logger,
                   IServiceProvider serviceProvider,
                   IReportService reportService)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _logger          = logger;
     _serviceProvider = serviceProvider;
     _reportService   = reportService;
 }
Beispiel #20
0
 /// <summary>
 /// Constructor to initialize the properties
 /// </summary>
 /// <param name="config"></param>
 /// <param name="logger"></param>
 /// <param name="httpService"></param>
 /// <param name="timeService"></param>
 /// <param name="eStartService"></param>
 /// <param name="jobs"></param>
 public EStartExportJob(IScheduleConfig <EStartExportJob> config, ILogger <EStartExportJob> logger, IHttpService httpService, ITimeService timeService, IEStartService eStartService, IOptions <Jobs> jobs)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _logger        = logger;
     _httpService   = httpService;
     _timeService   = timeService;
     _eStartService = eStartService;
     _job           = jobs.Value.Cron.First(x => x.Key.Equals("EStartExport"));
     _filters       = JsonConvert.DeserializeObject <List <SpanFilter> >(_job.Filters);
 }
Beispiel #21
0
 public GetExchangeRatesCronJob(IScheduleConfig <GetExchangeRatesCronJob> config,
                                ILogger <GetExchangeRatesCronJob> logger,
                                IExchangeRateService exchangeRateService,
                                IConfiguration configuration)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _logger = logger;
     _exchangeRateService = exchangeRateService;
     _configuration       = configuration;
 }
Beispiel #22
0
 public BuildBumpJob(IScheduleConfig <BuildBumpJob> config,
                     ILogger <BuildBumpJob> logger,
                     IHttpClientFactory clientFactory,
                     IConfiguration configuration)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _logger        = logger;
     _clientFactory = clientFactory;
     _poolNames     = configuration.GetSection("PoolNames").Get <IEnumerable <string> >();
 }
        public KafkaProducerService(ILogger <KafkaProducerService> logger, IOptions <KafkaConfiguration> kafkaConfigurationOptions
                                    , IScheduleConfig <KafkaProducerService> config,
                                    IServiceScopeFactory serviceScopeFactory
                                    ) : base(config.CronExpression, config.TimeZoneInfo)
        {
            _logger              = logger ?? throw new ArgumentException(nameof(logger));
            _kafkaConfiguration  = kafkaConfigurationOptions?.Value ?? throw new ArgumentException(nameof(kafkaConfigurationOptions));
            _serviceScopeFactory = serviceScopeFactory;

            Init();
        }
 public HelloWorldCronService(
     IScheduleConfig <HelloWorldCronService> config,
     ILogger <HelloWorldCronService> logger,
     IQueueService <HelloWorldModel> queueService,
     IAppIdentity appIdentity
     ) : base(config.CronExpression, config.TimeZoneInfo)
 {
     this.logger       = logger;
     this.queueService = queueService;
     this.appIdentity  = appIdentity;
 }
Beispiel #25
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="options"></param>
 /// <param name="worker"></param>
 public CronJob(IScheduleConfig <T> options, Func <Type, ICronWorker> cronFactory)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     _cronHandler            = options.CronHandler;
     _cronHandler.Expression = options.CronExpression;
     _timeZoneInfo           = options.TimeZoneInfo;
     _worker = (T)cronFactory(typeof(T));
 }
 public ReminderCron(IScheduleConfig <ReminderCron> config, ILogger <ReminderCron> logger,
                     IServiceProvider serviceProvider,
                     IConfiguration configuration,
                     IMailer mailer)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     _logger          = logger;
     _serviceProvider = serviceProvider;
     _configuration   = configuration;
     _mailer          = mailer;
 }
Beispiel #27
0
 public SubscriptionDowngradeJob(
     IConfiguration configuration,
     IScheduleConfig <SubscriptionDowngradeJob> config,
     ILogger <SubscriptionDowngradeJob> logger,
     IServiceProvider serviceProvider)
     : base(config.CronExpression, config.TimeZoneInfo, serviceProvider)
 {
     _configuration   = configuration;
     _logger          = logger;
     _serviceProvider = serviceProvider;
 }
Beispiel #28
0
 public SendDayScheduleJob(
     IScheduleConfig <SendDayScheduleJob> config,
     ILogger <SendDayScheduleJob> logger,
     IBotService botService,
     IServiceScopeFactory serviceScopeFactory)
     : base(logger, config.CronExpression, config.TimeZoneInfo, config.CronFormat)
 {
     _logger              = logger;
     _botService          = botService;
     _serviceScopeFactory = serviceScopeFactory;
 }
 public AuditLogThumbprintJob(
     IScheduleConfig <AuditLogThumbprintJob> config,
     ISignerClient signerClient,
     ITransformTransactionHistory transformTransactionHistory,
     IPdfService pdfService,
     IAlfrescoHttpClient alfrescoHttpClient,
     ISignerConfiguration signerConfiguration,
     ITransactionHistoryConfiguration transactionHistoryConfiguration) : base(config.CronExpression, config.TimeZoneInfo)
 {
     _signerClient = signerClient;
     _transformTransactionHistory = transformTransactionHistory;
     _pdfService         = pdfService;
     _alfrescoHttpClient = alfrescoHttpClient;
     _transactionHistoryConfiguration = transactionHistoryConfiguration;
     _signerConfiguration             = signerConfiguration;
 }
Beispiel #30
0
 public MessageSenderCronJob(IScheduleConfig <MessageSenderCronJob> config, ILogger <MessageSenderCronJob> _logger, IServiceProvider _service)
     : base(config.CronExpression, config.TimeZoneInfo)
 {
     logger  = _logger;
     service = _service;
 }