コード例 #1
0
 public CoinCheckCommands(ICoinDataProvider dataProvider, ICoinDataEmbedBuilder embedBuilder, IExplorerDataClient explorerClient,
                          ILogger <CoinCheckCommands> log)
 {
     this._dataProvider   = dataProvider;
     this._embedBuilder   = embedBuilder;
     this._explorerClient = explorerClient;
     this._log            = log;
 }
コード例 #2
0
 public CoinDataProvider(ICoinDataClient <TxBitData> txbitClient, ICoinDataClient <MiningPoolStatsData> poolStatsClient, IExplorerDataClient explorerClient,
                         ILogger <CoinDataProvider> log, IOptionsMonitor <CachingOptions> cachingOptions)
 {
     this._txbitClient     = txbitClient;
     this._explorerClient  = explorerClient;
     this._poolStatsClient = poolStatsClient;
     this._log             = log;
     this._cachingOptions  = cachingOptions;
     this._coinLock        = new SemaphoreSlim(1, 1);
     this._poolsLock       = new SemaphoreSlim(1, 1);
 }