示例#1
0
 public ConfigurationService(IEncodedBlocksStorage encodedBlocksStorage, ITransactionStorage transactionStorage,
                             IServiceProvider serviceProvider, IConfiguration configuration, IBackgroundQueue queue)
 {
     _encodedBlocksStorage = encodedBlocksStorage;
     _transactionStorage   = transactionStorage;
     _serviceProvider      = serviceProvider;
     _configuration        = configuration;
     _queue = queue;
 }
 public ConsensusService(IHubContext <ConsensusHub, IConsensusClient> consensusHubContext,
                         IEncodedBlocksStorage encodedBlocksStorage, IBlockchainValidator blockchainValidator,
                         IServerNodesStorage serverNodesStorage, IBlockchainService blockchainService,
                         IStatisticService statisticService, IBackgroundQueue backgroundQueue,
                         IConfigurationService configurationService) : base(configurationService)
 {
     _consensusHubContext  = consensusHubContext;
     _encodedBlocksStorage = encodedBlocksStorage;
     _blockchainValidator  = blockchainValidator;
     _serverNodesStorage   = serverNodesStorage;
     _blockchainService    = blockchainService;
     _statisticService     = statisticService;
     _backgroundQueue      = backgroundQueue;
 }