예제 #1
0
 public BlockchainIndexingService(
     IBalanceObservationTaskRepository balanceObservationTaskRepository,
     IBlockchainService blockchainServiceService,
     IBlockIndexationLockRepository blockLockRepository,
     IChaosKitty chaosKitty,
     ILogFactory logFactory,
     Settings settings,
     IBlockchainIndexationStateRepository stateRepository,
     ITransactionReceiptRepository transactionReceiptRepository)
 {
     _balanceObservationTaskRepository = balanceObservationTaskRepository;
     _blockchainService   = blockchainServiceService;
     _blockLockDuration   = settings.BlockLockDuration;
     _blockLockRepository = blockLockRepository;
     _chaosKitty          = chaosKitty;
     _log             = logFactory.CreateLog(this);
     _stateRepository = stateRepository;
     _telemetryClient = new TelemetryClient();
     _transactionReceiptRepository = transactionReceiptRepository;
 }
 public DefaultBlockchainIndexingService(
     IBalanceMonitoringTaskRepository balanceMonitoringTaskRepository,
     IBalanceRepository balanceRepository,
     IBlockchainIndexationStateRepository stateRepository,
     IBlockchainService blockchainServiceService,
     IBlockIndexationLockRepository blockLockRepository,
     IChaosKitty chaosKitty,
     IIndexBlockStrategy indexBlockStrategy,
     ILogFactory logFactory,
     Settings settings,
     ITransactionReceiptRepository transactionReceiptRepository)
 {
     _balanceRepository = balanceRepository;
     _balanceMonitoringTaskRepository = balanceMonitoringTaskRepository;
     _blockchainService   = blockchainServiceService;
     _blockLockDuration   = settings.BlockLockDuration;
     _blockLockRepository = blockLockRepository;
     _chaosKitty          = chaosKitty;
     _indexBlockStrategy  = indexBlockStrategy;
     _log = logFactory.CreateLog(this);
     _minBlockNumberToIndex        = settings.MinBlockNumberToIndex;
     _stateRepository              = stateRepository;
     _transactionReceiptRepository = transactionReceiptRepository;
 }