예제 #1
0
 public DataUpdateService(
     ILogger <DataUpdateService> log,
     BlockIndexService blockIndexService,
     TickerService tickerService,
     WeightService weightService,
     IMemoryCache memoryCache,
     IOptions <ExplorerSettings> settings)
 {
     this.log               = log;
     this.tickerService     = tickerService;
     this.weightService     = weightService;
     this.blockIndexService = blockIndexService;
     this.memoryCache       = memoryCache;
     this.settings          = settings.Value;
 }
예제 #2
0
        public DataUpdateService(
            ILogger <DataUpdateService> log,
            BlockIndexService blockIndexService,
            TickerService tickerService,
            WeightService weightService,
            IMemoryCache memoryCache,
            IOptions <ExplorerSettings> settings, IOptions <ChainSettings> chainSettings)
        {
            this.log               = log;
            this.tickerService     = tickerService;
            this.weightService     = weightService;
            this.blockIndexService = blockIndexService;
            this.memoryCache       = memoryCache;
            this.settings          = settings.Value;

            this.log.LogInformation($"CHAIN SYMBOL: {chainSettings.Value.Symbol}");
        }