Esempio n. 1
0
 public TeamElectionWorker(IServiceProvider services, IntervalWorkerConfiguration config, Guid sourceId) : base(services, config)
 {
     _updateStore = services.GetRequiredService <UpdateStore>();
     _db          = services.GetRequiredService <Database>();
     _client      = services.GetRequiredService <HttpClient>();
     _sourceId    = sourceId;
 }
Esempio n. 2
0
 public StatsheetsWorker(IServiceProvider services, IntervalWorkerConfiguration config, Guid sourceId) : base(services, config)
 {
     _sourceId    = sourceId;
     _db          = services.GetRequiredService <Database>();
     _client      = services.GetRequiredService <HttpClient>();
     _updateStore = services.GetRequiredService <UpdateStore>();
     _clock       = services.GetRequiredService <IClock>();
 }
Esempio n. 3
0
        public FeedWorker(IServiceProvider services, IntervalWorkerConfiguration config) : base(services, config)
        {
            Blocking = true;

            _client    = services.GetRequiredService <HttpClient>();
            _feedStore = services.GetRequiredService <FeedStore>();
            _db        = services.GetRequiredService <Database>();
        }
Esempio n. 4
0
 protected IntervalWorker(IServiceProvider services, IntervalWorkerConfiguration config) : base(services)
 {
     Interval = config.Interval;
     _offset  = config.Offset;
 }