コード例 #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();
 }
コード例 #3
0
 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;
 }