コード例 #1
0
 public DataUpdateService(
     ILogger <DataUpdateService> log,
     BlockIndexService blockIndexService,
     TickerService tickerService,
     IMemoryCache memoryCache,
     IOptions <ExplorerSettings> settings)
 {
     this.log               = log;
     this.tickerService     = tickerService;
     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}");
        }