public AddressRefresherJob(ILoggerFactory loggerFactory, IOptions <AddressRefresherSettings> settings,
                            IHybridCacheClient cacheClient, IAddressRepository addressRepository, IWeb3 web3) : base(loggerFactory)
 {
     _settings          = settings.Value;
     _addressRepository = addressRepository;
     _statsCache        = new ScopedHybridCacheClient(cacheClient, CacheScopes.Stats);
     _web3 = web3;
 }
Exemple #2
0
 public Handler(IAddressRepository addressRepository, IAddressMetaRepository addressMetaRepository,
                IHybridCacheClient cacheClient, IOptions <Settings> options)
 {
     _addressRepository     = addressRepository;
     _addressMetaRepository = addressMetaRepository;
     _statsCache            = new ScopedHybridCacheClient(cacheClient, CacheScopes.Stats);
     _settings = options.Value;
 }
Exemple #3
0
 public Handler(IHybridCacheClient cacheClient)
 {
     _statsCache = new ScopedHybridCacheClient(cacheClient, CacheScopes.Stats);
 }
 public Handler(IPromotionRepository promotionRepository, IHybridCacheClient cacheClient)
 {
     _promotionRepository = promotionRepository;
     _statsCache          = new ScopedHybridCacheClient(cacheClient, CacheScopes.Stats);
 }
 public CirculatingSupplyJob(ILoggerFactory loggerFactory, IHybridCacheClient cacheClient,
                             IAddressRepository addressRepository) : base(loggerFactory)
 {
     _addressRepository = addressRepository;
     _statsCache        = new ScopedHybridCacheClient(cacheClient, CacheScopes.Stats);
 }
Exemple #6
0
 public PriceJob(ILoggerFactory loggerFactory, ICoinGeckoApi api, IHybridCacheClient cacheClient) : base(loggerFactory)
 {
     _api        = api;
     _statsCache = new ScopedHybridCacheClient(cacheClient, CacheScopes.Stats);
 }