示例#1
0
 public EventFeedsRunner([CanBeNull] string singleLeaderElectionKey,
                         TimeSpan delayBetweenIterations,
                         [NotNull, ItemNotNull] IBlade[] blades,
                         IPeriodicJobRunner periodicJobRunner,
                         CancellationToken cancellationToken)
 {
     this.periodicJobRunner = periodicJobRunner;
     RunFeeds(singleLeaderElectionKey, delayBetweenIterations, blades, cancellationToken);
 }
示例#2
0
 public AdvancedConfigurationReader(ILogger <AdvancedConfigurationReader> logger, ISettingsCacheResolver settingsCacheResolver,
                                    ICacheMissHandler cacheMissHandler, IPeriodicJobRunner periodicJobRunner)
 {
     _logger = logger;
     _settingsCacheResolver = settingsCacheResolver;
     _cacheMissHandler      = cacheMissHandler;
     _periodicJobRunner     = periodicJobRunner;
     _periodicJobRunner.Start();
 }
 public EventFeedsBuilder(IGlobalTimeProvider globalTimeProvider, IPeriodicJobRunner periodicJobRunner)
 {
     this.globalTimeProvider = globalTimeProvider;
     this.periodicJobRunner  = periodicJobRunner;
     bladesBuilders          = new List <IBladesBuilder <TOffset> >();
 }
示例#4
0
 public EventFeedFactory(IGlobalTimeProvider globalTimeProvider, IPeriodicJobRunner periodicJobRunner)
 {
     this.globalTimeProvider = globalTimeProvider;
     this.periodicJobRunner  = periodicJobRunner;
 }